summaryrefslogtreecommitdiffstats
path: root/qkineticscroller_p.h
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2010-04-08 19:57:03 +0200
committerRobert Griebl <rgriebl@trolltech.com>2010-04-08 19:57:03 +0200
commitf557f9a5099a07dfa599e394c779558a7e1fb167 (patch)
tree6ac0739c4724e8562964300b8d3199ce384f2468 /qkineticscroller_p.h
parentc1a713436556df407f6227acc2e4488a32fb43ee (diff)
support both exponential (eg. maemo5) and linear (eg. iphone) deceleration.
Diffstat (limited to 'qkineticscroller_p.h')
-rw-r--r--qkineticscroller_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qkineticscroller_p.h b/qkineticscroller_p.h
index 14188ce..cb06feb 100644
--- a/qkineticscroller_p.h
+++ b/qkineticscroller_p.h
@@ -86,13 +86,16 @@ public:
void updateVelocity(const QPointF &deltaPixel, qint64 deltaTime);
void setContentPositionHelper(const QPointF &position);
+ qreal decelerate(qreal v, qreal expDecel, qreal linDecel);
+
static const char *stateName(QKineticScroller::State state);
static const char *inputName(QKineticScroller::Input input);
// metrics
qreal dragVelocitySmoothingFactor;
- qreal frictionCoefficent;
+ qreal linearDecelerationFactor;
+ qreal exponentialDecelerationBase;
qreal overshootSpringConstant;
qreal overshootDragResistanceFactor;
QPointF overshootMaximumDistance;