summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-12-10 01:24:49 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-12-10 01:24:49 (GMT)
commitf2eca0c0380a0e06ccc7f98c8d112549ac9fa085 (patch)
tree4ecd726b902e5fd43f7d32b3e83b9f3e6b6eb8d7 /src/declarative/graphicsitems/qdeclarativeimagebase_p.h
parent61a5cc5fcde2de0c3639e20104ff58ca91cf793b (diff)
downloadQt-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.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimagebase_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimagebase_p.h b/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
index d25f7c3..b6e55ec 100644
--- a/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
@@ -60,6 +60,7 @@ class Q_AUTOTEST_EXPORT QDeclarativeImageBase : public QDeclarativeItem
Q_PROPERTY(bool asynchronous READ asynchronous WRITE setAsynchronous NOTIFY asynchronousChanged)
Q_PROPERTY(bool cached READ cached WRITE setCached NOTIFY cachedChanged) // ### VERSIONING: Only in QtQuick 1.1
Q_PROPERTY(QSize sourceSize READ sourceSize WRITE setSourceSize NOTIFY sourceSizeChanged)
+ Q_PROPERTY(bool mirror READ mirror WRITE setMirror NOTIFY mirrorChanged) // ### VERSIONING: Only in QtQuick 1.1
public:
~QDeclarativeImageBase();
@@ -79,6 +80,9 @@ public:
virtual void setSourceSize(const QSize&);
QSize sourceSize() const;
+ virtual void setMirror(bool mirror);
+ bool mirror() const;
+
Q_SIGNALS:
void sourceChanged(const QUrl &);
void sourceSizeChanged();
@@ -86,6 +90,7 @@ Q_SIGNALS:
void progressChanged(qreal progress);
void asynchronousChanged();
void cachedChanged();
+ void mirrorChanged();
protected:
virtual void load();