diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-10-11 21:29:47 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-10-16 17:14:17 +0200 |
commit | 24bd5a8dcebec886b8fbbf077fabfb2106dc7dcd (patch) | |
tree | 35c03fc280dab0a09ccb2f59939f0a1d93595aaf /qt-models/cylindermodel.h | |
parent | 73d2ab8099ce08ab20f119a126334463ffd41b1e (diff) | |
download | subsurface-24bd5a8dcebec886b8fbbf077fabfb2106dc7dcd.tar.gz |
Planner: Autom. move first datapoint gas to first gaslist position
In the planner it is best practise to start the dive with the first
gas in the gaslist. Otherwise one would get a gaschange event at the
very beginning of a dive.
This change implements the following feature:
Automatically move a gas to position 0 in the gaslist if the user selects
this gas for the first dive data point.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'qt-models/cylindermodel.h')
-rw-r--r-- | qt-models/cylindermodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h index d77cd84dd..502780a6d 100644 --- a/qt-models/cylindermodel.h +++ b/qt-models/cylindermodel.h @@ -40,6 +40,7 @@ public: void copyFromDive(struct dive *d); void updateDecoDepths(pressure_t olddecopo2); void updateTrashIcon(); + void moveAtFirst(int cylid); cylinder_t *cylinderAt(const QModelIndex &index); bool changed; virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; |