From a26be08664f724d35d681fb183488558cfb32a99 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 13 Feb 2008 20:51:00 +0000 Subject: 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 --- src/dolphinviewactionhandler.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/dolphinviewactionhandler.h') 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 class KToggleAction; @@ -125,12 +126,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. */ @@ -168,6 +179,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(); -- cgit v1.3