Only update infobox if the mouse is pressed

This commit is contained in:
Marco Bubke
2010-03-24 15:34:51 +01:00
committed by Kai Koehne
parent d6cbc6730b
commit 24cc2acdb2

View File

@@ -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();