Commit 424faf1e authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Feedback pane is not anymore shown for changes with cursor keys.

Reviewed-by: kkoehne
parent 2eb96a8e
......@@ -97,6 +97,12 @@ void FormEditorGraphicsView::mouseMoveEvent(QMouseEvent *event)
m_feedbackOriginPoint = event->pos() + QPoint(50, -80);
}
void FormEditorGraphicsView::keyPressEvent(QKeyEvent *event)
{
m_feedbackOriginPoint = QPoint();
QGraphicsView::keyPressEvent(event);
}
void FormEditorGraphicsView::mouseReleaseEvent(QMouseEvent *event)
{
......@@ -117,6 +123,8 @@ void FormEditorGraphicsView::mouseReleaseEvent(QMouseEvent *event)
m_feedbackOriginPoint = QPoint();
}
void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*rect*/ )
{
if (!m_feedbackNode.isValid())
......
......@@ -49,6 +49,7 @@ protected:
void wheelEvent(QWheelEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
private:
QmlItemNode m_feedbackNode;
QmlObjectNode m_parentNode;
......
Supports Markdown
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