summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-05-14 23:42:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-17 15:07:06 -0700
commit043bd3afb720870d2c3b4b9b0b1437b53e3b2f38 (patch)
tree76662e07f68038142bd1baed40a2f6099292fe0f /qt-ui/diveplanner.h
parent907ccb0b7123e55908a10c12c851d47710cac05a (diff)
downloadsubsurface-043bd3afb720870d2c3b4b9b0b1437b53e3b2f38.tar.gz
Make gaschange from contex menu act as a gaschange
so it affect no longer the previous leg but all the following ones with the same gas (i.e. until the next gaschange). This makes the add dive/planner behaviour more consistent with the rest of the program regarding gas changes. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 988c908ba..42e0dc44a 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -35,6 +35,7 @@ public:
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
virtual Qt::ItemFlags flags(const QModelIndex &index) const;
+ void gaschange(const QModelIndex &index, QString newgas);
void removeSelectedPoints(const QVector<int> &rows);
void setPlanMode(Mode mode);
bool isPlanner();