summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 026e9f312..d6096f4bb 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -47,10 +47,22 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget* parent): QGraphicsView(parent)
plusDepth = new Button();
plusDepth->setPos(15, 1);
scene()->addItem(plusDepth);
+ connect(plusDepth, SIGNAL(clicked()), this, SLOT(increaseDepth()));
plusTime = new Button();
plusTime->setPos( 95, 90);
scene()->addItem(plusTime);
+ connect(plusTime, SIGNAL(clicked()), this, SLOT(increaseTime()));
+}
+
+void DivePlannerGraphics::increaseDepth()
+{
+ qDebug() << "Increase Depth Clicked";
+}
+
+void DivePlannerGraphics::increaseTime()
+{
+ qDebug() << "Increase Time Clicked";
}
void DivePlannerGraphics::mouseDoubleClickEvent(QMouseEvent* event)
@@ -249,6 +261,7 @@ void DivePlannerGraphics::mousePressEvent(QMouseEvent* event)
activeDraggedHandler->setBrush(Qt::red);
}
}
+ QGraphicsView::mousePressEvent(event);
}
void DivePlannerGraphics::mouseReleaseEvent(QMouseEvent* event)