diff options
| author | David Faure <[email protected]> | 2008-02-13 20:51:00 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-02-13 20:51:00 +0000 |
| commit | a26be08664f724d35d681fb183488558cfb32a99 (patch) | |
| tree | 20826ad1a9d19b8df9cd022193fc86e02167774f /src/dolphinviewactionhandler.h | |
| parent | 4bdbe2b0ac5b931830258ca5b84f81ef55ea0ed2 (diff) | |
Provide the "sort by" actions in dolphinpart (konqueror); share and simplify the code by connecting to the actiongroup's signal.
svn path=/branches/KDE/4.0/kdebase/apps/; revision=774697
Diffstat (limited to 'src/dolphinviewactionhandler.h')
| -rw-r--r-- | src/dolphinviewactionhandler.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/dolphinviewactionhandler.h b/src/dolphinviewactionhandler.h index d4790a38d..4eb856387 100644 --- a/src/dolphinviewactionhandler.h +++ b/src/dolphinviewactionhandler.h @@ -21,6 +21,7 @@ #ifndef DOLPHINVIEWACTIONHANDLER_H #define DOLPHINVIEWACTIONHANDLER_H +#include "dolphinview.h" #include "libdolphin_export.h" #include <QtCore/QObject> class KToggleAction; @@ -126,12 +127,22 @@ private Q_SLOTS: void slotSortOrderChanged(Qt::SortOrder order); /** + * Updates the state of the 'Sort by' actions. + */ + void slotSortingChanged(DolphinView::Sorting sorting); + + /** * Switches on or off the displaying of additional information * as specified by \a action. */ void toggleAdditionalInfo(QAction* action); /** + * Changes the sorting of the current view. + */ + void slotSortTriggered(QAction*); + + /** * Updates the state of the 'Additional Information' actions. */ void slotAdditionalInfoChanged(); @@ -169,6 +180,12 @@ private: QActionGroup* createAdditionalInformationActionGroup(); /** + * Creates an action group with all the "sort by" actions in it. + * Helper method for createActions(); + */ + QActionGroup* createSortByActionGroup(); + + /** * Returns the "switch to icons mode" action. * Helper method for createActions(); */ |
