From 2f47863c68bb0ac0417eed76f713ced651a4908a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 11 Feb 2009 20:45:12 +0000 Subject: - 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: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=924867 --- src/dolphincontextmenu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dolphincontextmenu.h') 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& 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 m_customActions; }; #endif -- cgit v1.3