diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-11-18 22:34:59 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-18 17:01:45 -0800 |
commit | a63d61042db1bef9bbd56cad9771fa97ebd3f5ac (patch) | |
tree | 6b5787d48930af3567027e473237dbf1922a6f8d | |
parent | 66fdd9bc9153b65de7459a0a25229cec5be03286 (diff) | |
download | subsurface-a63d61042db1bef9bbd56cad9771fa97ebd3f5ac.tar.gz |
Change the order of the increase / decrease buttons on the planner.
Change the order of the increase / decrease depth button on the planner
since 'bottom' means increase depth and 'top' means decrease. Sorry
I'm too undiver currently :)
See #269
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/diveplanner.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 7c9263adb..081f7f60d 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -148,8 +148,10 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget* parent): QGraphicsView(parent) depthHandler->increaseBtn->setPixmap(QString(":arrow_up")); depthHandler->decreaseBtn->setPixmap(QString(":arrow_down")); depthHandler->icon->setPixmap(QString(":icon_depth")); - connect(depthHandler->increaseBtn, SIGNAL(clicked()), this, SLOT(increaseDepth())); - connect(depthHandler->decreaseBtn, SIGNAL(clicked()), this, SLOT(decreaseDepth())); + // 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())); depthHandler->setPos(fromPercent(0, Qt::Horizontal), fromPercent(100, Qt::Vertical)); depthHandler->setZValue(-2); scene()->addItem(depthHandler); |