diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-06-26 19:16:40 -1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-04 23:00:12 -0700 |
commit | 5ce5b05521ee8d939fa4f2951eeec8021177ccdf (patch) | |
tree | 4f08175fcc018e6dc205d2a8e6e12e6d82299014 /qt-ui/divelistview.h | |
parent | c7f8ada4ff5e84e2ea52e387806c640eee05f45f (diff) | |
download | subsurface-5ce5b05521ee8d939fa4f2951eeec8021177ccdf.tar.gz |
Qt: Implement trip merging logic
So during my Maui trip, I had a short hiatus in diving, causing
subsurface to start a new trip for the last day of diving. I could have
just started the old gtk branch to fix it up, but decided that I might
as well try to implement the "merge trip" logic in the Qt branch instead.
This is the end result of that.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.h')
-rw-r--r-- | qt-ui/divelistview.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h index 3aee19128..1faa3613a 100644 --- a/qt-ui/divelistview.h +++ b/qt-ui/divelistview.h @@ -40,6 +40,8 @@ public slots: void deleteDive(); void testSlot(); void fixMessyQtModelBehaviour(); + void mergeTripAbove(); + void mergeTripBelow(); signals: void currentDiveChanged(int divenr); @@ -50,6 +52,7 @@ private: DiveTripModel::Layout currentLayout; QLineEdit *searchBox; QModelIndex contextMenuIndex; + void merge_trip(const QModelIndex &a, const int offset); }; #endif // DIVELISTVIEW_H |