summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-27 17:44:06 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-28 15:10:57 +0000
commit139c749c90f299b8e23a3889142e33e3c187fafd (patch)
treecd31d2ac6c63cee1b5f6c08a2e303fcd50ba9311 /desktop-widgets/divelistview.cpp
parentf634554d30d867e54886ea4391e1a5f340deab36 (diff)
downloadsubsurface-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.cpp1
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);