diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-11-29 01:01:46 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-11-29 01:01:46 (GMT) |
commit | 031ab2136c632d582a324941798be9e37825d287 (patch) | |
tree | 8bc99def77422aaa425a07e00e4b88e17d956bd3 /src/declarative/graphicsitems/qdeclarativeflickable_p.h | |
parent | 940856ee20287ce0a61cfaf46012dd5509f857b5 (diff) | |
download | Qt-031ab2136c632d582a324941798be9e37825d287.zip Qt-031ab2136c632d582a324941798be9e37825d287.tar.gz Qt-031ab2136c632d582a324941798be9e37825d287.tar.bz2 |
Allow resizing Flickable content about a center point.
Useful for zooming via pinch, for example.
Task-number: QTBUG-15148
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeflickable_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeflickable_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeflickable_p.h b/src/declarative/graphicsitems/qdeclarativeflickable_p.h index 6e4d8ed..ece2db7 100644 --- a/src/declarative/graphicsitems/qdeclarativeflickable_p.h +++ b/src/declarative/graphicsitems/qdeclarativeflickable_p.h @@ -149,6 +149,10 @@ public: FlickableDirection flickableDirection() const; void setFlickableDirection(FlickableDirection); + //XXX Added in QtQuick 1.1 + Q_INVOKABLE void resizeContent(qreal w, qreal h, QPointF center); + Q_INVOKABLE void returnToBounds(); + Q_SIGNALS: void contentWidthChanged(); void contentHeightChanged(); |