diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-12-10 01:24:49 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-12-10 01:24:49 (GMT) |
commit | f2eca0c0380a0e06ccc7f98c8d112549ac9fa085 (patch) | |
tree | 4ecd726b902e5fd43f7d32b3e83b9f3e6b6eb8d7 /src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp | |
parent | 61a5cc5fcde2de0c3639e20104ff58ca91cf793b (diff) | |
download | Qt-f2eca0c0380a0e06ccc7f98c8d112549ac9fa085.zip Qt-f2eca0c0380a0e06ccc7f98c8d112549ac9fa085.tar.gz Qt-f2eca0c0380a0e06ccc7f98c8d112549ac9fa085.tar.bz2 |
Add 'mirror' property to Image element.
Setting mirror to true will horizontally invert an image. This feature
is part of the task to support RTL in QML (see QTBUG-11042).
Task-number: QTBUG-15878
Reviewed-by: Joona Petrell
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp b/src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp index 12a820f..abdfdfa 100644 --- a/src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp +++ b/src/declarative/graphicsitems/qdeclarativeanimatedimage.cpp @@ -86,6 +86,16 @@ QT_BEGIN_NAMESPACE \sa BorderImage, Image */ +/*! + \qmlproperty bool AnimatedImage::mirror + \since Quick 1.1 + + This property holds whether the image should be horizontally inverted + (effectively displaying a mirrored image). + + The default value is false. +*/ + QDeclarativeAnimatedImage::QDeclarativeAnimatedImage(QDeclarativeItem *parent) : QDeclarativeImage(*(new QDeclarativeAnimatedImagePrivate), parent) { @@ -126,7 +136,7 @@ void QDeclarativeAnimatedImage::setPaused(bool pause) \qmlproperty bool AnimatedImage::playing This property holds whether the animated image is playing. - By defaults, this property is true, meaning that the animation + By default, this property is true, meaning that the animation will start playing immediately. */ bool QDeclarativeAnimatedImage::isPlaying() const |