summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-06-26 19:16:40 -1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-07-04 23:00:12 -0700
commit5ce5b05521ee8d939fa4f2951eeec8021177ccdf (patch)
tree4f08175fcc018e6dc205d2a8e6e12e6d82299014 /qt-ui/models.h
parentc7f8ada4ff5e84e2ea52e387806c640eee05f45f (diff)
downloadsubsurface-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/models.h')
-rw-r--r--qt-ui/models.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index f6fb3f5c0..ec15174f6 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -162,7 +162,7 @@ public:
enum Column {NR, DATE, RATING, DEPTH, DURATION, TEMPERATURE, TOTALWEIGHT,
SUIT, CYLINDER, NITROX, SAC, OTU, MAXCNS, LOCATION, COLUMNS };
- enum ExtraRoles{STAR_ROLE = Qt::UserRole + 1, DIVE_ROLE, SORT_ROLE};
+ enum ExtraRoles{STAR_ROLE = Qt::UserRole + 1, DIVE_ROLE, TRIP_ROLE, SORT_ROLE};
enum Layout{TREE, LIST, CURRENT};
Qt::ItemFlags flags(const QModelIndex &index) const;