]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/panel.cpp
Lock panels per default and allow to unlock them like in Amarok.
[dolphin.git] / src / panels / panel.cpp
index 6d11422d8a6cbea1a1dc45cd29f46abc2408d0ed..e90970c6ee2c05666195cb1721e7de0961cdcdae 100644 (file)
@@ -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)) {