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);
|
QGraphicsView::mouseReleaseEvent(mouseEvent);
|
||||||
delete mouseEvent;
|
delete mouseEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_feedbackOriginPoint = QPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*rect*/ )
|
void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*rect*/ )
|
||||||
@@ -119,6 +121,9 @@ void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*r
|
|||||||
if (!m_feedbackNode.isValid())
|
if (!m_feedbackNode.isValid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (m_feedbackOriginPoint.isNull())
|
||||||
|
return;
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
|
||||||
painter->resetTransform();
|
painter->resetTransform();
|
||||||
|
|||||||
Reference in New Issue
Block a user