summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-06-30 07:09:34 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-07-08 06:57:30 (GMT)
commitd8af562509f8624837f6fa4a617bc6e976b0731d (patch)
tree92323698250574d5903780d19462f67adabd43f9
parent247c0d8c3030267720766a48ed9ee681edc62085 (diff)
downloadQt-d8af562509f8624837f6fa4a617bc6e976b0731d.zip
Qt-d8af562509f8624837f6fa4a617bc6e976b0731d.tar.gz
Qt-d8af562509f8624837f6fa4a617bc6e976b0731d.tar.bz2
Try again to fix flickable velocity on Mac.
Change-Id: Id2693a69739886f9a171f3f6438a5404dff8e901 Task-number: QTBUG-19676 Reviewed-by: Bea Lam (cherry picked from commit 927b22b06ee2e749395e73f457fe3c16ea087864)
-rw-r--r--tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp1
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));