diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-03-31 00:44:39 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-03-31 01:20:28 (GMT) |
commit | 7850ee84483b34ef2e97517c3bc9cfb93ea1bf1c (patch) | |
tree | 89ade68f14d19c9f09a537def9502345b40940ac /src/declarative | |
parent | 603b797d745c4129f5d2a151c9146358e36eb668 (diff) | |
download | Qt-7850ee84483b34ef2e97517c3bc9cfb93ea1bf1c.zip Qt-7850ee84483b34ef2e97517c3bc9cfb93ea1bf1c.tar.gz Qt-7850ee84483b34ef2e97517c3bc9cfb93ea1bf1c.tar.bz2 |
Update mouseX(Y) when clicking on a mouse area
This fixes the original commit, 56aa9370dbafa8ee4, for QTBUG-9383.
We need to emit a positionChanged signal to update the mouseX(Y)
for the mouse area.
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativemousearea.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea.cpp b/src/declarative/graphicsitems/qdeclarativemousearea.cpp index dde3366..6126a6f 100644 --- a/src/declarative/graphicsitems/qdeclarativemousearea.cpp +++ b/src/declarative/graphicsitems/qdeclarativemousearea.cpp @@ -640,6 +640,7 @@ bool QDeclarativeMouseArea::setPressed(bool p) QDeclarativeMouseEvent me(d->lastPos.x(), d->lastPos.y(), d->lastButton, d->lastButtons, d->lastModifiers, isclick, d->longPress); if (d->pressed) { emit pressed(&me); + emit positionChanged(&me); } else { emit released(&me); if (isclick) |