mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Correctly name member function gasChange of DivePlannerPointsModel
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
3e67bfaea6
commit
bfe52f6689
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue