From 64a1a50e10c4ec8432de9d7cc08921b1b5b490a5 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 4 Nov 2018 18:11:30 +0100 Subject: Dive list: remove sortColumn and currentOrder members Since the QHeaderView of DiveListView is now the authority over sort-column and sort-order, it makes little sense to keep these as member variables. That would only risk inconsistencies. Remove them and query the QHeaderView instead. We still need to keep track of currentLayout, as we have to detect if it changes to change the underlying model from tree to list or vice-versa. Signed-off-by: Berthold Stoeger --- desktop-widgets/divelistview.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'desktop-widgets/divelistview.h') diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h index 79049d754..85d8bd21c 100644 --- a/desktop-widgets/divelistview.h +++ b/desktop-widgets/divelistview.h @@ -68,8 +68,6 @@ slots: private: bool mouseClickSelection; QList expandedRows; - int sortColumn; - Qt::SortOrder currentOrder; DiveTripModel::Layout currentLayout; QModelIndex contextMenuIndex; bool dontEmitDiveChangedSignal; -- cgit v1.2.3-70-g09d2