mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove unused roles in DiveTripModelBase
The roles DIVE_IDX and SELECTED_ROLE were used for the old selection
system and removed in b8e7a600d2
.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
568aeb7bce
commit
e2d3a12555
2 changed files with 0 additions and 6 deletions
|
@ -389,10 +389,6 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role)
|
|||
return d->rating;
|
||||
case DIVE_ROLE:
|
||||
return QVariant::fromValue(const_cast<dive *>(d)); // Not nice: casting away a const
|
||||
case DIVE_IDX:
|
||||
return get_divenr(d);
|
||||
case SELECTED_ROLE:
|
||||
return d->selected;
|
||||
case CURRENT_ROLE:
|
||||
return d == current_dive;
|
||||
}
|
||||
|
|
|
@ -53,8 +53,6 @@ public:
|
|||
IS_TRIP_ROLE,
|
||||
DIVE_ROLE,
|
||||
TRIP_ROLE,
|
||||
DIVE_IDX,
|
||||
SELECTED_ROLE,
|
||||
CURRENT_ROLE,
|
||||
TRIP_HAS_CURRENT_ROLE, // Returns true if this is a trip and it contains the current dive
|
||||
LAST_ROLE
|
||||
|
|
Loading…
Add table
Reference in a new issue