diff options
| author | David Faure <[email protected]> | 2008-01-22 00:39:52 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-01-22 00:39:52 +0000 |
| commit | d34f1d1b466a8163a2274fa6763e1049233f00bb (patch) | |
| tree | 7d1eb3d337dfbd6de77dc85ab2aea692b53594a4 /src/dolphinview.h | |
| parent | af333d9c7a8f344ed7f2a5cae02b383a5d0ee792 (diff) | |
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
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <QListView> #include <QWidget> +class QActionGroup; class KAction; class KToggleAction; class DolphinController; @@ -375,6 +376,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 */ QString currentViewModeActionName() const; |
