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>
This commit is contained in:
Berthold Stoeger 2019-11-11 21:16:48 +01:00 committed by Dirk Hohndel
parent 90f8c1138e
commit 35b33b8c6a
6 changed files with 656 additions and 1 deletions

View file

@ -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,