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/qdeclarativeimagebase_p_p.h | |
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/qdeclarativeimagebase_p_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h index a539649..950914f 100644 --- a/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h +++ b/src/declarative/graphicsitems/qdeclarativeimagebase_p_p.h @@ -71,7 +71,8 @@ public: progress(0.0), explicitSourceSize(false), async(false), - cached(true) + cached(true), + mirror(false) { QGraphicsItemPrivate::flags = QGraphicsItemPrivate::flags & ~QGraphicsItem::ItemHasNoContents; } @@ -84,6 +85,7 @@ public: bool explicitSourceSize : 1; bool async : 1; bool cached : 1; + bool mirror: 1; }; QT_END_NAMESPACE |