From 94815093253e5db99aa100f0834cd6c74c96a91a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 31 Dec 2010 10:59:46 +0000 Subject: Lock panels per default and allow to unlock them like in Amarok. BUG: 229811 FIXED-IN: 4.7.0 svn path=/trunk/KDE/kdebase/apps/; revision=1210424 --- src/panels/panel.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/panels/panel.h') diff --git a/src/panels/panel.h b/src/panels/panel.h index 11558e2de..83ed3da3b 100644 --- a/src/panels/panel.h +++ b/src/panels/panel.h @@ -27,6 +27,9 @@ /** * @brief Base widget for all panels that can be docked on the window borders. + * + * Derived panels should provide a context menu that at least offers the + * actions from Panel::customContextMenuActions(). */ class Panel : public QWidget { @@ -39,6 +42,14 @@ public: /** Returns the current set URL of the active Dolphin view. */ KUrl url() const; + /** + * Sets custom context menu actions that are added to the panel specific + * context menu actions. Allows an application to apply custom actions to + * the panel. + */ + void setCustomContextMenuActions(const QList& actions); + QList customContextMenuActions() const; + public slots: /** * This is invoked every time the folder being displayed in the @@ -58,6 +69,7 @@ protected: private: KUrl m_url; + QList m_customContextMenuActions; }; #endif // PANEL_H -- cgit v1.3