mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
66fdd9bc91
commit
a63d61042d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue