mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
planner: don't export recalc flag of DivePlannerPointsModel
This is not queried anymore, so remove the accessor function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
77a6bc6d62
commit
cbee716316
2 changed files with 1 additions and 10 deletions
|
@ -255,14 +255,6 @@ bool DivePlannerPointsModel::isPlanner() const
|
||||||
return mode == PLAN;
|
return mode == PLAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When the planner adds deco stops to the model, adding those should not trigger a new deco calculation.
|
|
||||||
* We thus start the planner only when recalc is true. */
|
|
||||||
|
|
||||||
bool DivePlannerPointsModel::recalcQ() const
|
|
||||||
{
|
|
||||||
return recalc;
|
|
||||||
}
|
|
||||||
|
|
||||||
int DivePlannerPointsModel::columnCount(const QModelIndex&) const
|
int DivePlannerPointsModel::columnCount(const QModelIndex&) const
|
||||||
{
|
{
|
||||||
return COLUMNS; // to disable CCSETPOINT subtract one
|
return COLUMNS; // to disable CCSETPOINT subtract one
|
||||||
|
@ -770,7 +762,7 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, int cylinderid_
|
||||||
cylinderid = cylinderid_in;
|
cylinderid = cylinderid_in;
|
||||||
else
|
else
|
||||||
usePrevious = true;
|
usePrevious = true;
|
||||||
if (recalcQ())
|
if (recalc)
|
||||||
removeDeco();
|
removeDeco();
|
||||||
|
|
||||||
int row = divepoints.count();
|
int row = divepoints.count();
|
||||||
|
|
|
@ -41,7 +41,6 @@ public:
|
||||||
bool isPlanner() const;
|
bool isPlanner() const;
|
||||||
void createSimpleDive(struct dive *d);
|
void createSimpleDive(struct dive *d);
|
||||||
Mode currentMode() const;
|
Mode currentMode() const;
|
||||||
bool recalcQ() const;
|
|
||||||
bool tankInUse(int cylinderid) const;
|
bool tankInUse(int cylinderid) const;
|
||||||
CylindersModel *cylindersModel();
|
CylindersModel *cylindersModel();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue