summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-31 01:15:25 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-31 01:15:25 (GMT)
commit07f6fe57bf15ac06a6e0672abd1fa4acdc61548e (patch)
treefe47f886f0ab5e1b239c73aba8c2a8b1846a256c
parentbe8c03e36b527d1ce8e99e470320938e8f138385 (diff)
downloadQt-07f6fe57bf15ac06a6e0672abd1fa4acdc61548e.zip
Qt-07f6fe57bf15ac06a6e0672abd1fa4acdc61548e.tar.gz
Qt-07f6fe57bf15ac06a6e0672abd1fa4acdc61548e.tar.bz2
doc
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage.cpp b/src/declarative/graphicsitems/qdeclarativeimage.cpp
index 23a2350..3145c43 100644
--- a/src/declarative/graphicsitems/qdeclarativeimage.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeimage.cpp
@@ -275,6 +275,10 @@ qreal QDeclarativeImage::paintedHeight() const
used by a loaded image. The image will be scaled down if its intrinsic size
is greater than this value.
+ If only one dimension of the size is set (and the other left at 0), the
+ unset dimension will be set in proportion to the set dimension to preserve
+ the source image aspect ratio. The fillMode is independent of this.
+
Unlike setting the width and height properties, which merely scale the painting
of the image, this property affects the number of pixels stored.