]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinviewactionhandler.h
Merge remote-tracking branch 'fork/work/zakharafoniam/useful-groups'
[dolphin.git] / src / views / dolphinviewactionhandler.h
index 20d62cf64a0e61601495734f354315d9b222e10a..a589be9eaac7eb8e41efd7bd20b49fe75552a1b4 100644 (file)
@@ -165,6 +165,16 @@ private Q_SLOTS:
      */
     void slotSortRoleChanged(const QByteArray &role);
 
+    /**
+     * Updates the state of the 'Group Ascending/Descending' action.
+     */
+    void slotGroupOrderChanged(Qt::SortOrder order);
+
+    /**
+     * Updates the state of the 'Group by' actions.
+     */
+    void slotGroupRoleChanged(const QByteArray &role);
+
     /**
      * Updates the state of the 'Zoom In' and 'Zoom Out' actions.
      */
@@ -186,6 +196,11 @@ private Q_SLOTS:
      */
     void slotVisibleRolesChanged(const QList<QByteArray> &current, const QList<QByteArray> &previous);
 
+    /**
+     * Changes the grouping of the current view.
+     */
+    void slotGroupTriggered(QAction *);
+    
     /**
      * Switches between sorting by groups or not.
      */
@@ -281,6 +296,7 @@ private:
     DolphinView *m_currentView;
 
     QHash<QByteArray, KToggleAction *> m_sortByActions;
+    QHash<QByteArray, KToggleAction *> m_groupByActions;
     QHash<QByteArray, KToggleAction *> m_visibleRoles;
 };