mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: introduce DiveTripModelBase::IS_TRIP_ROLE
To test whether an entry is a trip, we passed a pointer to the trip through a QVariant and tested that for null-ity. Passing pointers through QVariants has given us myriads of problems in QML, therefore introduce a bool IS_TRIP_ROLE Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
a474264cc8
commit
e434b5aa40
4 changed files with 5 additions and 4 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
|
||||
enum ExtraRoles {
|
||||
STAR_ROLE = Qt::UserRole + 1,
|
||||
IS_TRIP_ROLE,
|
||||
DIVE_ROLE,
|
||||
TRIP_ROLE,
|
||||
DIVE_IDX,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue