diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-11 21:16:48 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-09 12:41:11 -0700 |
commit | 35b33b8c6a86b6add120aaa1c65f37d21f6a53a8 (patch) | |
tree | 01e88c4b9dec612f354d8a151f4c6cc0c6fcea80 /qt-models/divetripmodel.h | |
parent | 90f8c1138e3869803bf363be6da117db0248e179 (diff) | |
download | subsurface-35b33b8c6a86b6add120aaa1c65f37d21f6a53a8.tar.gz |
mobile/divelist: add first version of new MobileListModel proxy model
Create a model which represents all top-level items and, potentially, one
expanded trip as a flat list.
Pass down roles to the source model and let the source model handle that. We'll
have to do some ifdef-ery, but so be it.
Additionally, compile the base model on mobile as well.
This contains a couple of hacks to make things compile at all.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index a8688baa1..a10bacc15 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -51,7 +51,8 @@ public: DIVE_IDX, SELECTED_ROLE, CURRENT_ROLE, - TRIP_HAS_CURRENT_ROLE // Returns true if this is a trip and it contains the current dive + TRIP_HAS_CURRENT_ROLE, // Returns true if this is a trip and it contains the current dive + LAST_ROLE }; enum Layout { TREE, |