mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: convert weightsystem_t and weightsystem_table to C++
As for cylinders, this had to be done simultaneously, Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
28520da655
commit
640ecb345b
28 changed files with 137 additions and 247 deletions
|
@ -303,7 +303,7 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role)
|
|||
case MobileListModel::CylinderRole: return formatGetCylinder(d).join(", ");
|
||||
case MobileListModel::GetCylinderRole: return formatGetCylinder(d);
|
||||
case MobileListModel::CylinderListRole: return formatFullCylinderList();
|
||||
case MobileListModel::SingleWeightRole: return d->weightsystems.nr <= 1;
|
||||
case MobileListModel::SingleWeightRole: return d->weightsystems.size() <= 1;
|
||||
case MobileListModel::StartPressureRole: return formatStartPressure(d);
|
||||
case MobileListModel::EndPressureRole: return formatEndPressure(d);
|
||||
case MobileListModel::FirstGasRole: return formatFirstGas(d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue