diff options
| author | Peter Penz <[email protected]> | 2010-12-31 10:59:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-12-31 10:59:46 +0000 |
| commit | 94815093253e5db99aa100f0834cd6c74c96a91a (patch) | |
| tree | 725cbfd9d8b412198a143153cbadf06f0ee724c9 /src/panels/panel.h | |
| parent | f7bbe21b5b2d3bc85dcba1d03494879aac9e37c7 (diff) | |
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
Diffstat (limited to 'src/panels/panel.h')
| -rw-r--r-- | src/panels/panel.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<QAction*>& actions); + QList<QAction*> 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<QAction*> m_customContextMenuActions; }; #endif // PANEL_H |
