diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-27 17:44:06 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-28 15:10:57 +0000 |
commit | 139c749c90f299b8e23a3889142e33e3c187fafd (patch) | |
tree | cd31d2ac6c63cee1b5f6c08a2e303fcd50ba9311 /desktop-widgets/divelistview.cpp | |
parent | f634554d30d867e54886ea4391e1a5f340deab36 (diff) | |
download | subsurface-139c749c90f299b8e23a3889142e33e3c187fafd.tar.gz |
Dive list: show sort indicator
On desktop, show the a sort indicator to give a visual feedback on changes
of the sort order. This is trivially done by calling the
setSortIndicatorShown() function in DiveListView's constructor.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r-- | desktop-widgets/divelistview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index 9d77fb7b7..7aeacf82d 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -51,6 +51,7 @@ DiveListView::DiveListView(QWidget *parent) : QTreeView(parent), mouseClickSelec connect(MultiFilterSortModel::instance(), &MultiFilterSortModel::filterFinished, this, &DiveListView::filterFinished); header()->setStretchLastSection(true); + header()->setSortIndicatorShown(true); installEventFilter(this); |