summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-18 22:19:49 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-18 22:19:49 -0500
commit4141c68450bfceab8464aa1297d68a8258538ddd (patch)
tree5b74ab17dbff65d0ee97847e789bfe6d958787f0 /qt-ui
parent882b2c146b2dfc164c1dd2fadf606e92c77addd8 (diff)
downloadsubsurface-4141c68450bfceab8464aa1297d68a8258538ddd.tar.gz
Rename createDecostops to drawProfile
After all, that's what the function does. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp20
-rw-r--r--qt-ui/diveplanner.h2
2 files changed, 11 insertions, 11 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 5356aa71f..20dbabd68 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -164,7 +164,7 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget* parent): QGraphicsView(parent)
gasListView->hide();
connect(gasListView, SIGNAL(activated(QModelIndex)), this, SLOT(selectGas(QModelIndex)));
- connect(plannerModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(createDecoStops()));
+ connect(plannerModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(drawProfile()));
connect(plannerModel, SIGNAL(rowsInserted(const QModelIndex&,int,int)),
this, SLOT(pointInserted(const QModelIndex&, int, int)));
@@ -185,7 +185,7 @@ void DivePlannerGraphics::pointInserted(const QModelIndex& parent, int start , i
connect(gasChooseBtn, SIGNAL(clicked()), this, SLOT(prepareSelectGas()));
gases << gasChooseBtn;
- createDecoStops();
+ drawProfile();
}
void DivePlannerGraphics::keyDownAction()
@@ -219,7 +219,7 @@ void DivePlannerGraphics::keyUpAction()
plannerModel->editStop(row, dp);
}
}
- createDecoStops();
+ drawProfile();
}
void DivePlannerGraphics::keyLeftAction()
@@ -303,7 +303,7 @@ void DivePlannerGraphics::pointsRemoved(const QModelIndex& , int start, int end)
gases.pop_back();
}
scene()->clearSelection();
- createDecoStops();
+ drawProfile();
}
bool intLessThan(int a, int b){
@@ -343,7 +343,7 @@ void DivePlannerGraphics::increaseDepth()
return;
depthLine->setMaximum( depthLine->maximum() + 10);
depthLine->updateTicks();
- createDecoStops();
+ drawProfile();
}
void DivePlannerGraphics::increaseTime()
@@ -351,7 +351,7 @@ void DivePlannerGraphics::increaseTime()
minMinutes += 10;
timeLine->setMaximum( minMinutes );
timeLine->updateTicks();
- createDecoStops();
+ drawProfile();
}
void DivePlannerGraphics::decreaseDepth()
@@ -370,7 +370,7 @@ void DivePlannerGraphics::decreaseDepth()
}
depthLine->setMaximum(depthLine->maximum() - 10);
depthLine->updateTicks();
- createDecoStops();
+ drawProfile();
}
void DivePlannerGraphics::decreaseTime()
@@ -385,7 +385,7 @@ void DivePlannerGraphics::decreaseTime()
minMinutes -= 10;
timeLine->setMaximum(timeLine->maximum() -10);
timeLine->updateTicks();
- createDecoStops();
+ drawProfile();
}
void DivePlannerGraphics::mouseDoubleClickEvent(QMouseEvent* event)
@@ -415,7 +415,7 @@ void DivePlannerGraphics::selectGas(const QModelIndex& index)
gasListView->hide();
}
-void DivePlannerGraphics::createDecoStops()
+void DivePlannerGraphics::drawProfile()
{
qDeleteAll(lines);
lines.clear();
@@ -605,7 +605,7 @@ void DivePlannerGraphics::mouseReleaseEvent(QMouseEvent* event)
activeDraggedHandler->setBrush(QBrush(Qt::white));
activeDraggedHandler->setPos(QPointF(xpos, ypos));
- createDecoStops();
+ drawProfile();
activeDraggedHandler = 0;
}
}
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 2f7000a6d..016fda332 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -147,7 +147,7 @@ private slots:
void increaseDepth();
void decreaseTime();
void decreaseDepth();;
- void createDecoStops();
+ void drawProfile();
void prepareSelectGas();
void selectGas(const QModelIndex& index);
void pointInserted(const QModelIndex&, int start, int end);