summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 33a759f1d..4d9aefcb1 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -47,8 +47,6 @@ DivePlanner::DivePlanner(QWidget* parent): QGraphicsView(parent), activeDraggedH
depthString = new QGraphicsSimpleTextItem();
depthString->setFlag(QGraphicsItem::ItemIgnoresTransformations);
scene()->addItem(depthString);
-
-
}
void DivePlanner::mouseDoubleClickEvent(QMouseEvent* event)
@@ -109,9 +107,6 @@ void DivePlanner::clear_generated_deco()
void DivePlanner::create_deco_stop()
{
- // this needs to create everything
- // for the calculated deco. it should return the *first*
- // line that's calculated, so the
QGraphicsLineItem *item = new QGraphicsLineItem(handles.last()->x(), handles.last()->y(), 100, 0);
scene()->addItem(item);
lines << item;
@@ -227,8 +222,9 @@ void DivePlanner::mouseReleaseEvent(QMouseEvent* event)
{
if (activeDraggedHandler){
QPointF mappedPos = mapToScene(event->pos());
- activeDraggedHandler ->setTime(timeLine->valueAt(mappedPos));
- activeDraggedHandler ->setDepth(depthLine->valueAt(mappedPos));
+ activeDraggedHandler->setTime(timeLine->valueAt(mappedPos));
+ activeDraggedHandler->setDepth(depthLine->valueAt(mappedPos));
+ activeDraggedHandler->setBrush(QBrush());
activeDraggedHandler = 0;
}
}