summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplannermodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-03 18:59:12 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-11 20:37:09 -0800
commit1336ea755b7ad2ef18cb869ca6219a1a6e237ff9 (patch)
treeb5ecb061f62d98bcae4c7180c6ee777a2e604726 /qt-models/diveplannermodel.h
parent190a2a876e3fe3148c6cfce87ac630f251833066 (diff)
downloadsubsurface-1336ea755b7ad2ef18cb869ca6219a1a6e237ff9.tar.gz
Planner: don't filter cylinders
In the planner we used to filter out "unused" cylinders as in the equipment tab. It is unclear whether that makes sense or can even easily be reproduced, since such cylinders have to come from an imported dive. To be on the save side, let's not do this. Replace the CylindersFilteredModel introduced recently by a plain CylindersModel. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplannermodel.h')
-rw-r--r--qt-models/diveplannermodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h
index 4dda5cc6e..4d0967a26 100644
--- a/qt-models/diveplannermodel.h
+++ b/qt-models/diveplannermodel.h
@@ -48,7 +48,7 @@ public:
bool tankInUse(int cylinderid);
void setupCylinders();
bool updateMaxDepth();
- CylindersModelFiltered *cylindersModel();
+ CylindersModel *cylindersModel();
int ascrate75Display();
int ascrate50Display();
@@ -129,7 +129,7 @@ private:
void computeVariations(struct diveplan *diveplan, const struct deco_state *ds);
void computeVariationsFreeDeco(struct diveplan *diveplan, struct deco_state *ds);
int analyzeVariations(struct decostop *min, struct decostop *mid, struct decostop *max, const char *unit);
- CylindersModelFiltered cylinders;
+ CylindersModel cylinders;
Mode mode;
bool recalc;
QVector<divedatapoint> divepoints;