diff options
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 44ca6baf5..2ee168413 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -181,6 +181,7 @@ DiveHandler::DiveHandler() : QGraphicsEllipseItem() setFlags(ItemIgnoresTransformations | ItemIsSelectable | ItemIsMovable | ItemSendsGeometryChanges); setBrush(Qt::white); setZValue(2); + t.start(); } int DiveHandler::parentIndex() @@ -225,9 +226,14 @@ void DiveHandler::changeGas() void DiveHandler::mouseMoveEvent(QGraphicsSceneMouseEvent *event) { + if (t.elapsed() < 40) + return; + t.start(); + ProfileWidget2 *view = qobject_cast<ProfileWidget2*>(scene()->views().first()); if(view->isPointOutOfBoundaries(event->scenePos())) return; + QGraphicsEllipseItem::mouseMoveEvent(event); emit moved(); } |