From 139c749c90f299b8e23a3889142e33e3c187fafd Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 27 Oct 2018 17:44:06 +0200 Subject: [PATCH] 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 --- desktop-widgets/divelistview.cpp | 1 + 1 file changed, 1 insertion(+) 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);