diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-30 16:21:55 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-08-30 16:21:55 -0300 |
commit | 959bdbbca73ec1f288fc38081706dec73b2bd3f1 (patch) | |
tree | 3286bee262887a50f15e6c9643a494744d0a29d1 /qt-ui/diveplanner.cpp | |
parent | 72807017aeb4fb9db36e5c160ef6d6f89200590e (diff) | |
download | subsurface-959bdbbca73ec1f288fc38081706dec73b2bd3f1.tar.gz |
Fix '+' sign for time on the planer, plus code cleanup.
The plus sign for time was in a very strange position,
this puts it back to where it belongs, plus a bit of
code cleanup since the planner was in heavily modifications,
this will be needed quite a bit. :)
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 9ff47792c..08448303f 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -128,7 +128,7 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget* parent): QGraphicsView(parent) connect(obj, SIGNAL(clicked()), this, SLOT(slot)); ADDBTN(plusDepth, ":plus", "" , 5, 5, tr("Increase maximum depth by 10m"), increaseDepth()); - ADDBTN(plusTime, ":plus", "" , 95, 5, tr("Increase minimum time by 10m"), increaseTime()); + ADDBTN(plusTime, ":plus", "" , 95, 95, tr("Increase minimum time by 10m"), increaseTime()); ADDBTN(lessDepth, ":minimum","" , 2, 5, tr("Decreases maximum depth by 10m"), decreaseDepth()); ADDBTN(lessTime, ":minimum","" , 92, 95, tr("Decreases minimum time by 10m"), decreaseTime()); #undef ADDBTN @@ -169,11 +169,7 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget* parent): QGraphicsView(parent) void DivePlannerGraphics::pointInserted(const QModelIndex& parent, int start , int end) { - divedatapoint point = plannerModel->at(start); DiveHandler *item = new DiveHandler (); - double xpos = timeLine->posAtValue(point.time / 60); - double ypos = depthLine->posAtValue(point.depth / 1000); - item->setPos(QPointF(xpos, ypos)); scene()->addItem(item); handles << item; |