forked from qt-creator/qt-creator
Only update infobox if the mouse is pressed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user