diff options
| author | Peter Penz <[email protected]> | 2009-02-11 20:45:12 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-02-11 20:45:12 +0000 |
| commit | 2f47863c68bb0ac0417eed76f713ced651a4908a (patch) | |
| tree | 4deffd5657f8f39c02623d9a873e894b3a9ec8c0 /src/dolphincontextmenu.h | |
| parent | 5cec8a2dd95d6ccbc0d425c449df70cd645e3d29 (diff) | |
- allow the view implementations to attach custom actions to the context menu
- let the "details view" show the "[x] Expandable Folders" action in the context menu
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=924867
Diffstat (limited to 'src/dolphincontextmenu.h')
| -rw-r--r-- | src/dolphincontextmenu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index 4d8fe0c43..a660f0500 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -68,6 +68,8 @@ public: virtual ~DolphinContextMenu(); + void setCustomActions(const QList<QAction*>& actions); + /** Opens the context menu model. */ void open(); @@ -94,6 +96,7 @@ private: private: KonqFileItemCapabilities& capabilities(); + void addCustomActions(KMenu* menu); private: struct Entry @@ -121,6 +124,7 @@ private: KUrl::List m_selectedUrls; int m_context; KonqCopyToMenu m_copyToMenu; + QList<QAction*> m_customActions; }; #endif |
