X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/90e6190f13caa50773c5d84550a7b42a18adce13..08a485349f2bd73682ac806b97d3630c3a7dd3fd:/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