Commit 24cc2acd authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Only update infobox if the mouse is pressed

parent d6cbc673
......@@ -112,6 +112,8 @@ void FormEditorGraphicsView::mouseReleaseEvent(QMouseEvent *event)
QGraphicsView::mouseReleaseEvent(mouseEvent);
delete mouseEvent;
}
m_feedbackOriginPoint = QPoint();
}
void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*rect*/ )
......@@ -119,6 +121,9 @@ void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*r
if (!m_feedbackNode.isValid())
return;
if (m_feedbackOriginPoint.isNull())
return;
painter->save();
painter->resetTransform();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment