From 42adf258b65f2785bd08d6dcbdabce92187c99cf Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 11 Dec 2011 20:23:21 +0100 Subject: Remember sort settings If the user has changed the sort-role or sort-order by clicking on the view-header of the details-view, the settings have been adjusted to the model but not remembered in the directory settings. --- src/views/dolphinview.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index fa0baa61e..9a3a83fa3 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -646,6 +646,18 @@ private slots: */ void slotRefreshItems(); + /** + * Is invoked when the sort order has been changed by the user by clicking + * on a header item. The view properties of the directory will get updated. + */ + void slotSortOrderChangedByHeader(Qt::SortOrder current, Qt::SortOrder previous); + + /** + * Is invoked when the sort role has been changed by the user by clicking + * on a header item. The view properties of the directory will get updated. + */ + void slotSortRoleChangedByHeader(const QByteArray& current, const QByteArray& previous); + /** * Observes the item with the URL \a url. As soon as the directory * model indicates that the item is available, the item will -- cgit v1.3