diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-06-30 07:09:34 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-06-30 07:09:34 (GMT) |
commit | 927b22b06ee2e749395e73f457fe3c16ea087864 (patch) | |
tree | 56025f6710180a87a49c51a133111b4560e20160 /tests/auto/declarative | |
parent | 343069c7843321b33f06bfd42d476abae76dcece (diff) | |
download | Qt-927b22b06ee2e749395e73f457fe3c16ea087864.zip Qt-927b22b06ee2e749395e73f457fe3c16ea087864.tar.gz Qt-927b22b06ee2e749395e73f457fe3c16ea087864.tar.bz2 |
Try again to fix flickable velocity on Mac.
Change-Id: Id2693a69739886f9a171f3f6438a5404dff8e901
Task-number: QTBUG-19676
Reviewed-by: Bea Lam
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r-- | tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp index 7cb7e6f..d3763a7 100644 --- a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp +++ b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp @@ -518,6 +518,7 @@ void tst_qdeclarativeflickable::flick(QGraphicsView *canvas, const QPoint &from, QMouseEvent mv(QEvent::MouseMove, canvas->mapFromScene(from + (i+1)*diff/pointCount), Qt::LeftButton, Qt::LeftButton,Qt::NoModifier); QApplication::sendEvent(canvas->viewport(), &mv); QTest::qWait(duration/pointCount); + QCoreApplication::processEvents(); } QTest::mouseRelease(canvas->viewport(), Qt::LeftButton, 0, canvas->mapFromScene(to)); |