┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/panels/panel.cpp')
-rw-r--r--src/panels/panel.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/panels/panel.cpp b/src/panels/panel.cpp
index 6d11422d8..e90970c6e 100644
--- a/src/panels/panel.cpp
+++ b/src/panels/panel.cpp
@@ -23,7 +23,8 @@
Panel::Panel(QWidget* parent) :
QWidget(parent),
- m_url(KUrl())
+ m_url(),
+ m_customContextMenuActions()
{
}
@@ -36,6 +37,16 @@ KUrl Panel::url() const
return m_url;
}
+void Panel::setCustomContextMenuActions(const QList<QAction*>& actions)
+{
+ m_customContextMenuActions = actions;
+}
+
+QList<QAction*> Panel::customContextMenuActions() const
+{
+ return m_customContextMenuActions;
+}
+
void Panel::setUrl(const KUrl& url)
{
if (url.equals(m_url, KUrl::CompareWithoutTrailingSlash)) {