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

Reviewed-by: kkoehne
This commit is contained in:
Marco Bubke
2010-04-13 19:41:18 +02:00
committed by Kai Koehne
parent 2eb96a8ed3
commit 424faf1e17
2 changed files with 9 additions and 0 deletions

View File

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

View File

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