summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@nokia.com>2010-12-07 13:29:59 (GMT)
committerRobert Griebl <robert.griebl@nokia.com>2010-12-15 17:47:34 (GMT)
commit3e0df49f978933b1e4e6b48c695bf813ec9a2828 (patch)
treef221060111eae2702fbcee06d20b2bf773d5d0cf /examples
parent32d200da9cc7a4dfb3f302f22ef5718a286845c9 (diff)
downloadQt-3e0df49f978933b1e4e6b48c695bf813ec9a2828.zip
Qt-3e0df49f978933b1e4e6b48c695bf813ec9a2828.tar.gz
Qt-3e0df49f978933b1e4e6b48c695bf813ec9a2828.tar.bz2
Fix drag velocity smoothing in QScroller.
The algorithm used for smoothing the drag velocity was wrong in many ways. Reviewed-by: Ralf Engels
Diffstat (limited to 'examples')
-rw-r--r--examples/scroller/plot/settingswidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scroller/plot/settingswidget.cpp b/examples/scroller/plot/settingswidget.cpp
index af1e621..840e3fc 100644
--- a/examples/scroller/plot/settingswidget.cpp
+++ b/examples/scroller/plot/settingswidget.cpp
@@ -348,7 +348,7 @@ private:
MetricItem items[] = {
{ METRIC(MousePressEventDelay), 1000, "ms", qreal(0), qreal(2000), qreal(10) },
{ METRIC(DragStartDistance), 1000, "mm", qreal(1), qreal(20), qreal(0.1) },
- { METRIC(DragVelocitySmoothingFactor), 1, "", qreal(0), qreal(1), qreal(0.01) },
+ { METRIC(DragVelocitySmoothingFactor), 1, "", qreal(0), qreal(1), qreal(0.1) },
{ METRIC(AxisLockThreshold), 1, "", qreal(0), qreal(1), qreal(0.01) },
{ METRIC(ScrollingCurve), 1, "", QEasingCurve(), 0, 0 },