aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Andrey Zhdanov <andrjufka@gmail.com>2014-03-03 23:09:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 13:33:03 -0800
commit64b7a3b85f4f0ad2592105397289684055691cb0 (patch)
tree23d9832ed42e91b5a664c46b80cea1ae471a8c8c /qt-ui
parent7c535452f97947c0bf77a1da0323b86b9e514c8f (diff)
downloadsubsurface-64b7a3b85f4f0ad2592105397289684055691cb0.tar.gz
Depth widget minor UX improvement
Decrease depth by tapping left part of widget. Icon is showing "up" (i.e. closer to surface). Increase depth by tapping right part of widget. Icon is showing "down" (i.e. deeper). Fixes #354 Signed-off-by: Andrey Zhdanov <andrjufka@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index a4a2ba861..32e957363 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -134,13 +134,11 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget *parent) : QGraphicsView(parent
timeHandler->setZValue(-2);
scene()->addItem(timeHandler);
- depthHandler->increaseBtn->setPixmap(QString(":arrow_up"));
- depthHandler->decreaseBtn->setPixmap(QString(":arrow_down"));
+ depthHandler->increaseBtn->setPixmap(QString(":arrow_down"));
+ depthHandler->decreaseBtn->setPixmap(QString(":arrow_up"));
depthHandler->icon->setPixmap(QString(":icon_depth"));
- // Inverted here in the slots because the 'up' graphi should increase the depness,
- // and the down should decrease.
- connect(depthHandler->increaseBtn, SIGNAL(clicked()), this, SLOT(decreaseDepth()));
- connect(depthHandler->decreaseBtn, SIGNAL(clicked()), this, SLOT(increaseDepth()));
+ connect(depthHandler->decreaseBtn, SIGNAL(clicked()), this, SLOT(decreaseDepth()));
+ connect(depthHandler->increaseBtn, SIGNAL(clicked()), this, SLOT(increaseDepth()));
depthHandler->setPos(fromPercent(0, Qt::Horizontal), fromPercent(100, Qt::Vertical));
depthHandler->setZValue(-2);
scene()->addItem(depthHandler);