diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-09-01 02:17:36 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-09-01 02:17:36 (GMT) |
commit | 9c70c81e6af2435d8d8217b81714b2e087326ecf (patch) | |
tree | 6be4aedfec71e9c15f38b756ac94de0343a8fb58 /src/declarative/graphicsitems | |
parent | 62c23329fd61b016edbdc8dba758ca785a56fca7 (diff) | |
download | Qt-9c70c81e6af2435d8d8217b81714b2e087326ecf.zip Qt-9c70c81e6af2435d8d8217b81714b2e087326ecf.tar.gz Qt-9c70c81e6af2435d8d8217b81714b2e087326ecf.tar.bz2 |
Flickable ensure internal pressed state is cleared when mouse is released.
We did this when handling the mouse events ourselves, but if e.g. a
mousearea stole the mouse, we didn't reset the pressed flag.
Task-number: QTBUG-12343
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeflickable.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflickable.cpp b/src/declarative/graphicsitems/qdeclarativeflickable.cpp index 63a2a77..b302393 100644 --- a/src/declarative/graphicsitems/qdeclarativeflickable.cpp +++ b/src/declarative/graphicsitems/qdeclarativeflickable.cpp @@ -1258,6 +1258,7 @@ bool QDeclarativeFlickable::sendMouseEvent(QGraphicsSceneMouseEvent *event) if (mouseEvent.type() == QEvent::GraphicsSceneMouseRelease) { d->clearDelayedPress(); d->stealMouse = false; + d->pressed = false; } return false; } |