summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-04-06 04:51:52 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-04-06 05:04:11 (GMT)
commit160f1867868cdea916923652b00484ed11f90aaa (patch)
tree46116214939279cea86933fef15bc9cbffabb94c /mkspecs
parentfd1e840eba4567e67b55a00f7f761fc9815eaa47 (diff)
downloadQt-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 'mkspecs')
-rw-r--r--mkspecs/linux-g++-maemo/qplatformdefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkspecs/linux-g++-maemo/qplatformdefs.h b/mkspecs/linux-g++-maemo/qplatformdefs.h
index cf6d24e..0a0e122 100644
--- a/mkspecs/linux-g++-maemo/qplatformdefs.h
+++ b/mkspecs/linux-g++-maemo/qplatformdefs.h
@@ -43,3 +43,11 @@
#define QT_GUI_DOUBLE_CLICK_RADIUS 20
#define QT_GUI_DRAG_DISTANCE 16
+
+#define QML_FLICK_OVERSHOOT 160
+#define QML_FLICK_SAMPLEBUFFER 6
+#define QML_FLICK_DISCARDSAMPLES 2
+#define QML_FLICK_DEFAULTMAXVELOCITY 2500
+#define QML_FLICK_DEFAULTDECELERATION 2000
+#define QML_FLICK_OVERSHOOTFRICTION 10
+