From 08a485349f2bd73682ac806b97d3630c3a7dd3fd Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 7 Mar 2012 22:12:07 +0100 Subject: Allow custom sorting of details-view columns Fix regression that Dolphin 2.0 did not allow to adjust the sorting of the details-view columns. BUG: 164696 FIXED-IN: 4.8.2 --- src/kitemviews/kitemlistview.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 57f86ef64..b416888eb 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -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& current, const QList& 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 -- cgit v1.3.1