diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-10-11 22:03:03 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-10-16 17:14:17 +0200 |
commit | bfe52f66892c9d015d717c8c64f60e36704ab182 (patch) | |
tree | c9c53be5c1de3d1a3fd496e54b7038199e79fb62 | |
parent | 3e67bfaea6ff4f379c4b84784c31736cf822a7d3 (diff) | |
download | subsurface-bfe52f66892c9d015d717c8c64f60e36704ab182.tar.gz |
Correctly name member function gasChange of DivePlannerPointsModel
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 2 | ||||
-rw-r--r-- | qt-models/diveplannermodel.cpp | 2 | ||||
-rw-r--r-- | qt-models/diveplannermodel.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index f62609877..2f3fd49c5 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -76,7 +76,7 @@ void DiveHandler::changeGas() { QAction *action = qobject_cast<QAction *>(sender()); QModelIndex index = plannerModel->index(parentIndex(), DivePlannerPointsModel::GAS); - plannerModel->gaschange(index.sibling(index.row() + 1, index.column()), action->data().toInt()); + plannerModel->gasChange(index.sibling(index.row() + 1, index.column()), action->data().toInt()); } void DiveHandler::mouseMoveEvent(QGraphicsSceneMouseEvent *event) diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index cd237f950..0c90b0a48 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -348,7 +348,7 @@ bool DivePlannerPointsModel::setData(const QModelIndex &index, const QVariant &v return QAbstractItemModel::setData(index, value, role); } -void DivePlannerPointsModel::gaschange(const QModelIndex &index, int newcylinderid) +void DivePlannerPointsModel::gasChange(const QModelIndex &index, int newcylinderid) { int i = index.row(), oldcylinderid = divepoints[i].cylinderid; while (i < rowCount() && oldcylinderid == divepoints[i].cylinderid) diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index 8e853abf8..ba9db5e19 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -31,7 +31,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, int newcylinderid); + void gasChange(const QModelIndex &index, int newcylinderid); void cylinderRenumber(int mapping[]); void removeSelectedPoints(const QVector<int> &rows); void setPlanMode(Mode mode); |