diff options
| author | Peter Penz <[email protected]> | 2011-12-11 20:23:21 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-11 20:24:38 +0100 |
| commit | 42adf258b65f2785bd08d6dcbdabce92187c99cf (patch) | |
| tree | eac9bfab8ac1d5682444a2131ed19f049806b940 /src/views/dolphinview.h | |
| parent | 85d08ac7edc53027e7d2e976e6479aceb0e0add4 (diff) | |
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.
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -647,6 +647,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 * get selected and it is assured that the item stays visible. |
