diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-31 16:09:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-06-19 13:11:10 -0700 |
commit | 7f4d9db962e73aa5d5089c43c99b78b3690ffb87 (patch) | |
tree | 87e143b80ed394fc321765885a75cac229bf9f18 /desktop-widgets/divelistview.h | |
parent | f1c2cd375e295730d92e23093e44777baf838f1d (diff) | |
download | subsurface-7f4d9db962e73aa5d5089c43c99b78b3690ffb87.tar.gz |
Cleanup: move trip-related functions into own translation unit
These functions were spread out over dive.c and divelist.c.
Move them into their own file to make all this a bit less monolithic.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r-- | desktop-widgets/divelistview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h index 35e985633..7a3757adb 100644 --- a/desktop-widgets/divelistview.h +++ b/desktop-widgets/divelistview.h @@ -39,7 +39,7 @@ public: void rememberSelection(); void restoreSelection(); void contextMenuEvent(QContextMenuEvent *event); - QList<dive_trip_t *> selectedTrips(); + QList<dive_trip *> selectedTrips(); static QString lastUsedImageDir(); static void updateLastUsedImageDir(const QString &s); public @@ -78,7 +78,7 @@ private: QVector<int> initialColumnWidths; /* if dive_trip_t is null, there's no problem. */ - QMultiHash<dive_trip_t *, int> selectedDives; + QMultiHash<dive_trip *, int> selectedDives; void resetModel(); // Call after model changed void merge_trip(const QModelIndex &a, const int offset); void setColumnWidths(); @@ -86,7 +86,7 @@ private: void backupExpandedRows(); void restoreExpandedRows(); int lastVisibleColumn(); - void selectTrip(dive_trip_t *trip); + void selectTrip(dive_trip *trip); void updateLastImageTimeOffset(int offset); int lastImageTimeOffset(); void addToTrip(int delta); |