summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-03-31 00:32:26 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-03-31 00:47:57 (GMT)
commitaf05f64d3edc860c3cf79c7f0bdf2377faae5f40 (patch)
tree947c708b9d100feb63751bccef18561326e0cd64 /src/declarative/graphicsitems/qdeclarativeimagebase_p.h
parent068652a52f0554b5ceb56798fe5ac4e5049bb9e3 (diff)
downloadQt-af05f64d3edc860c3cf79c7f0bdf2377faae5f40.zip
Qt-af05f64d3edc860c3cf79c7f0bdf2377faae5f40.tar.gz
Qt-af05f64d3edc860c3cf79c7f0bdf2377faae5f40.tar.bz2
Once Image sourceSize is set there is no way to clear it.
Image sourceSize lacked a RESET method to allow reverting to the natural size of the image. Change-Id: I4e9089d8e16991375745db553f891bd377143eab Task-number: QTBUG-18442 Reviewed-by: Yann Bodson
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimagebase_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimagebase_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimagebase_p.h b/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
index abee25d..1763bba 100644
--- a/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
+++ b/src/declarative/graphicsitems/qdeclarativeimagebase_p.h
@@ -59,7 +59,7 @@ class Q_AUTOTEST_EXPORT QDeclarativeImageBase : public QDeclarativeImplicitSizeI
Q_PROPERTY(qreal progress READ progress NOTIFY progressChanged)
Q_PROPERTY(bool asynchronous READ asynchronous WRITE setAsynchronous NOTIFY asynchronousChanged)
Q_PROPERTY(bool cache READ cache WRITE setCache NOTIFY cacheChanged REVISION 1)
- Q_PROPERTY(QSize sourceSize READ sourceSize WRITE setSourceSize NOTIFY sourceSizeChanged)
+ Q_PROPERTY(QSize sourceSize READ sourceSize WRITE setSourceSize RESET resetSourceSize NOTIFY sourceSizeChanged)
Q_PROPERTY(bool mirror READ mirror WRITE setMirror NOTIFY mirrorChanged REVISION 1)
public:
@@ -80,6 +80,7 @@ public:
virtual void setSourceSize(const QSize&);
QSize sourceSize() const;
+ void resetSourceSize();
virtual void setMirror(bool mirror);
bool mirror() const;