diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-04-06 04:51:52 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-04-06 05:04:11 (GMT) |
commit | 160f1867868cdea916923652b00484ed11f90aaa (patch) | |
tree | 46116214939279cea86933fef15bc9cbffabb94c /tests | |
parent | fd1e840eba4567e67b55a00f7f761fc9815eaa47 (diff) | |
download | Qt-160f1867868cdea916923652b00484ed11f90aaa.zip Qt-160f1867868cdea916923652b00484ed11f90aaa.tar.gz Qt-160f1867868cdea916923652b00484ed11f90aaa.tar.bz2 |
Improve Flickable dynamics and allow platform specific tweaking.
Flickable's previous overshoot behavior was to continue past the
boundary without any additional friction (deceleration). It now
decelerates faster when overshooting.
On touch screens in particular, the last points when a touch point
is released are unreliable, resulting in sporadic flick velocities.
It also now allows the number of samples used for velocity calclations
to be tuned.
It is now easy to tune the Flickable behavior for different platforms.
Change-Id: I24142a50be1fde2f8877e359e30b8efcdd1f7d5c
Task-number: QTBUG-10894, QTBUG-16388, QTBUG-17830
Reviewed-by: Michael Brasser
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp index d499edf..4fa1cb3 100644 --- a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp +++ b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp @@ -110,7 +110,7 @@ void tst_qdeclarativeflickable::create() QCOMPARE(obj->isInteractive(), true); QCOMPARE(obj->boundsBehavior(), QDeclarativeFlickable::DragAndOvershootBounds); QCOMPARE(obj->pressDelay(), 0); - QCOMPARE(obj->maximumFlickVelocity(), 2000.); + QCOMPARE(obj->maximumFlickVelocity(), 2500.); delete obj; } |