divetripmodel: add TRIP_HAS_CURRENT_ROLE

This role returns true if the given trip contains the current
dive. This will be needed by the mobile list model to decide
if a newly added trip should be expanded right away.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-06 16:33:34 +01:00 committed by Dirk Hohndel
parent a88ab64cf8
commit dbddec59d3
2 changed files with 13 additions and 5 deletions

View file

@ -50,7 +50,8 @@ public:
TRIP_ROLE,
DIVE_IDX,
SELECTED_ROLE,
CURRENT_ROLE
CURRENT_ROLE,
TRIP_HAS_CURRENT_ROLE // Returns true if this is a trip and it contains the current dive
};
enum Layout {
TREE,