summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativemousearea_p_p.h
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-16 06:50:27 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-19 00:20:18 (GMT)
commit5efb732bc78e15605ac9d9f770e1bd24c01bb778 (patch)
tree952639777368bcdfd444415d9890cf1403d0ec3b /src/declarative/graphicsitems/qdeclarativemousearea_p_p.h
parent465f4df8ad4be9485c37ecc379c45e758b2842ad (diff)
downloadQt-5efb732bc78e15605ac9d9f770e1bd24c01bb778.zip
Qt-5efb732bc78e15605ac9d9f770e1bd24c01bb778.tar.gz
Qt-5efb732bc78e15605ac9d9f770e1bd24c01bb778.tar.bz2
Update mouse area coordinates automatically when changing position
Mouse area coordinates are now updated when the mouse area changes position and positionChanged signals are not emitted on mousePress anymore (only mousePosChanged signals). Task-number: QTBUG-9716 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativemousearea_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativemousearea_p_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea_p_p.h b/src/declarative/graphicsitems/qdeclarativemousearea_p_p.h
index 9068c7c..4973957 100644
--- a/src/declarative/graphicsitems/qdeclarativemousearea_p_p.h
+++ b/src/declarative/graphicsitems/qdeclarativemousearea_p_p.h
@@ -81,6 +81,7 @@ public:
void saveEvent(QGraphicsSceneMouseEvent *event) {
lastPos = event->pos();
+ lastScenePos = event->scenePos();
lastButton = event->button();
lastButtons = event->buttons();
lastModifiers = event->modifiers();
@@ -105,6 +106,7 @@ public:
qreal startX;
qreal startY;
QPointF lastPos;
+ QDeclarativeNullableValue<QPointF> lastScenePos;
Qt::MouseButton lastButton;
Qt::MouseButtons lastButtons;
Qt::KeyboardModifiers lastModifiers;