Skip to content
Snippets Groups Projects
Commit 9555ff02 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Reset the feedback pane point for leaving the form editor

Reviewed-by: kkoehne
parent 17d5cbee
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,11 @@ void FormEditorGraphicsView::mouseReleaseEvent(QMouseEvent *event) ...@@ -123,7 +123,11 @@ void FormEditorGraphicsView::mouseReleaseEvent(QMouseEvent *event)
m_feedbackOriginPoint = QPoint(); m_feedbackOriginPoint = QPoint();
} }
void FormEditorGraphicsView::leaveEvent(QEvent *event)
{
m_feedbackOriginPoint = QPoint();
QGraphicsView::leaveEvent(event);
}
void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*rect*/ ) void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*rect*/ )
{ {
......
...@@ -49,6 +49,7 @@ protected: ...@@ -49,6 +49,7 @@ protected:
void wheelEvent(QWheelEvent *event); void wheelEvent(QWheelEvent *event);
void mouseMoveEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event);
void leaveEvent(QEvent *);
void keyPressEvent(QKeyEvent *event); void keyPressEvent(QKeyEvent *event);
private: private:
QmlItemNode m_feedbackNode; QmlItemNode m_feedbackNode;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment