From d34f1d1b466a8163a2274fa6763e1049233f00bb Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 22 Jan 2008 00:39:52 +0000 Subject: Use a QActionGroup and save 6 slots (and the duplication of the action names in the code). svn path=/branches/KDE/4.0/kdebase/apps/; revision=764537 --- src/dolphinview.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 80430ca77..e69f0bbc6 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -38,6 +38,7 @@ #include #include +class QActionGroup; class KAction; class KToggleAction; class DolphinController; @@ -374,6 +375,12 @@ public: */ static KAction* createSortDescendingAction(KActionCollection* collection); + /** + * Creates an action group with all the "show additional information" actions in it. + * This code is here to share it between the mainwindow and the part + */ + static QActionGroup* createAdditionalInformationActionGroup(KActionCollection* collection); + /** * Returns the action name corresponding to the current view mode */ -- cgit v1.3