summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-28 15:42:34 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-12-04 13:00:23 +0100
commit364a8270d1089dcd8f3efb411568be273aa0b59a (patch)
tree8ce3656a3155e543da17962ff5d471e1bb70a21a /desktop-widgets/divelistview.h
parenta83bc5ecdb5edc2834335f77711f8fb262ef5273 (diff)
downloadsubsurface-364a8270d1089dcd8f3efb411568be273aa0b59a.tar.gz
Cleanup: remove DiveListView::remember/restoreSelection()
Calls of these functions were removed in the previous commits. Now, remove the functions themselves. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r--desktop-widgets/divelistview.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h
index f7676c58a..9cb2bd66a 100644
--- a/desktop-widgets/divelistview.h
+++ b/desktop-widgets/divelistview.h
@@ -34,8 +34,6 @@ public:
void selectDive(QModelIndex index, bool scrollto = false, bool toggle = false);
void selectDive(int dive_table_idx, bool scrollto = false, bool toggle = false);
void selectDives(const QList<int> &newDiveSelection);
- void rememberSelection();
- void restoreSelection();
void contextMenuEvent(QContextMenuEvent *event);
QList<dive_trip *> selectedTrips();
static QString lastUsedImageDir();
@@ -76,12 +74,9 @@ private:
DiveTripModelBase::Layout currentLayout;
QModelIndex contextMenuIndex;
bool dontEmitDiveChangedSignal;
- bool selectionSaved;
// Remember the initial column widths, to avoid writing unchanged widths to the settings
QVector<int> initialColumnWidths;
- /* if dive_trip_t is null, there's no problem. */
- QMultiHash<dive_trip *, int> selectedDives;
void resetModel(); // Call after model changed
void merge_trip(const QModelIndex &a, const int offset);
void setColumnWidths();