Compare commits
1 Commits
master
...
bstoeger-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72688c43ef |
@ -389,10 +389,6 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role)
|
|||||||
return d->rating;
|
return d->rating;
|
||||||
case DIVE_ROLE:
|
case DIVE_ROLE:
|
||||||
return QVariant::fromValue(const_cast<dive *>(d)); // Not nice: casting away a const
|
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:
|
case CURRENT_ROLE:
|
||||||
return d == current_dive;
|
return d == current_dive;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,8 +53,6 @@ public:
|
|||||||
IS_TRIP_ROLE,
|
IS_TRIP_ROLE,
|
||||||
DIVE_ROLE,
|
DIVE_ROLE,
|
||||||
TRIP_ROLE,
|
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
|
TRIP_HAS_CURRENT_ROLE, // Returns true if this is a trip and it contains the current dive
|
||||||
LAST_ROLE
|
LAST_ROLE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user