┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewactionhandler.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-02-13 20:52:21 +0000
committerDavid Faure <[email protected]>2008-02-13 20:52:21 +0000
commita8a050952df82d8f9cc1191f410fca7c6a219da3 (patch)
tree154475d23919386097b707f52f218efee6f629a2 /src/dolphinviewactionhandler.h
parent87ac70706240a4f0e7492d95f9f64d4539ba0c47 (diff)
Provide the "sort by" actions in dolphinpart (konqueror); share and simplify the code by connecting to the actiongroup's signal.
svn path=/trunk/KDE/kdebase/apps/; revision=774699
Diffstat (limited to 'src/dolphinviewactionhandler.h')
-rw-r--r--src/dolphinviewactionhandler.h17
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();
*/