diff options
author | Andras Becsi <andras.becsi@nokia.com> | 2012-01-27 12:05:00 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 07:02:25 +0100 |
commit | f1e823e2900f3cc3ef039432fb0f3535fc824bac (patch) | |
tree | a77a17e54ba7c60e456685245fb3d32e7938fdfb /src/quick/items/qquickflickable_p.h | |
parent | be64eb1c7fc186f65b9dae28013c558bda3f308c (diff) |
Flickable should be controllable programatically
Add flick(xVelocity, yVelocity) and cancelFlick() functions.
The functionality provided by these functions is already covered
by current unit tests.
Task-number: https://bugreports.qt.nokia.com/browse/QTBUG-23865
Change-Id: Ie284232bfbd98ae7c70ca060760fb016b4a45ee1
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/quick/items/qquickflickable_p.h')
-rw-r--r-- | src/quick/items/qquickflickable_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquickflickable_p.h b/src/quick/items/qquickflickable_p.h index 3d527e9d93..7d6dc59a83 100644 --- a/src/quick/items/qquickflickable_p.h +++ b/src/quick/items/qquickflickable_p.h @@ -184,6 +184,8 @@ public: Q_INVOKABLE void resizeContent(qreal w, qreal h, QPointF center); Q_INVOKABLE void returnToBounds(); + Q_INVOKABLE void flick(qreal xVelocity, qreal yVelocity); + Q_INVOKABLE void cancelFlick(); Q_SIGNALS: void contentWidthChanged(); @@ -254,7 +256,6 @@ protected: bool xflick() const; bool yflick() const; - void cancelFlick(); protected: QQuickFlickable(QQuickFlickablePrivate &dd, QQuickItem *parent); |