]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistview.h
Allow custom sorting of details-view columns
[dolphin.git] / src / kitemviews / kitemlistview.h
index 57f86ef64d118ce94a7411923aefce73c2082fad..b416888eb8aa37a28472d1c36a3bac8d19dc5c9a 100644 (file)
@@ -298,6 +298,14 @@ signals:
      */
     void sortRoleChanged(const QByteArray& current, const QByteArray& previous);
 
+    /**
+     * Is emitted if the user has changed the visible roles by moving a header
+     * item (see KItemListView::setHeaderShown()). Note that no signal will be
+     * emitted if the roles have been changed without user interaction by
+     * KItemListView::setVisibleRoles().
+     */
+    void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous);
+
 protected:
     virtual void initializeItemListWidget(KItemListWidget* item);
 
@@ -371,6 +379,14 @@ private slots:
                                      qreal currentWidth,
                                      qreal previousWidth);
 
+    /**
+     * Is invoked if a visible role has been moved by the user. Applies
+     * the moved role to the view.
+     */
+    void slotVisibleRoleMoved(const QByteArray& role,
+                              int currentIndex,
+                              int previousIndex);
+
     /**
      * Triggers the autoscrolling if autoScroll() is enabled by checking the
      * current mouse position. If the mouse position is within the autoscroll