summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-09-29 23:10:08 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-09-29 23:10:08 (GMT)
commit603f738642891773c46308663fb7733055cf3cdc (patch)
tree5e99e62afe7585917820925b511dec297a855ff9
parent1d65aff4f6c0339752c92f859ce78f1a59450a28 (diff)
downloadQt-603f738642891773c46308663fb7733055cf3cdc.zip
Qt-603f738642891773c46308663fb7733055cf3cdc.tar.gz
Qt-603f738642891773c46308663fb7733055cf3cdc.tar.bz2
Make sure the delayed press event is exactly the same as the original.
-rw-r--r--src/declarative/fx/qfxflickable.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxflickable.cpp b/src/declarative/fx/qfxflickable.cpp
index 5c1cccf..a83ee66 100644
--- a/src/declarative/fx/qfxflickable.cpp
+++ b/src/declarative/fx/qfxflickable.cpp
@@ -744,12 +744,19 @@ void QFxFlickablePrivate::captureDelayedPress(QGraphicsSceneMouseEvent *event)
if (event->buttons() & i) {
Qt::MouseButton button = Qt::MouseButton(i);
delayedPressEvent->setButtonDownPos(button, event->buttonDownPos(button));
+ delayedPressEvent->setButtonDownScenePos(button, event->buttonDownScenePos(button));
+ delayedPressEvent->setButtonDownScreenPos(button, event->buttonDownScreenPos(button));
}
}
- delayedPressEvent->setScenePos(event->scenePos());
- delayedPressEvent->setLastScenePos(event->lastScenePos());
+ delayedPressEvent->setButtons(event->buttons());
+ delayedPressEvent->setButton(event->button());
delayedPressEvent->setPos(event->pos());
+ delayedPressEvent->setScenePos(event->scenePos());
+ delayedPressEvent->setScreenPos(event->screenPos());
delayedPressEvent->setLastPos(event->lastPos());
+ delayedPressEvent->setLastScenePos(event->lastScenePos());
+ delayedPressEvent->setLastScreenPos(event->lastScreenPos());
+ delayedPressEvent->setModifiers(event->modifiers());
delayedPressTimer.start(pressDelay, q);
}