summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2011-03-17 06:12:29 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2011-03-17 06:14:22 (GMT)
commitcb0b93e3ef107b8a47445c926753b6bcf07b796d (patch)
treee11ef9fc553dee7181cec0e3913e653ddb9bd863 /src/declarative/graphicsitems
parent82a53835a71a8e1902774c67e792bf6d7d6385de (diff)
downloadQt-cb0b93e3ef107b8a47445c926753b6bcf07b796d.zip
Qt-cb0b93e3ef107b8a47445c926753b6bcf07b796d.tar.gz
Qt-cb0b93e3ef107b8a47445c926753b6bcf07b796d.tar.bz2
Doc improvement for Image.fillMode.
Change-Id: I2aec2c9fae07a8551001b2c7d5f5ab8da0fbb7df Task-number: QTBUG-14899
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage.cpp b/src/declarative/graphicsitems/qdeclarativeimage.cpp
index 2c9bde5..ec20200 100644
--- a/src/declarative/graphicsitems/qdeclarativeimage.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeimage.cpp
@@ -147,8 +147,8 @@ void QDeclarativeImagePrivate::setPixmap(const QPixmap &pixmap)
/*!
\qmlproperty enumeration Image::fillMode
- Set this property to define what happens when the image set for the item is smaller
- than the size of the item.
+ Set this property to define what happens when the source image has a different size
+ than the item.
\list
\o Image.Stretch - the image is scaled to fit
@@ -234,6 +234,9 @@ void QDeclarativeImagePrivate::setPixmap(const QPixmap &pixmap)
\endtable
+ Note that \c clip is \c false by default which means that the element might
+ paint outside its bounding rectangle even if the fillMode is set to \c PreserveAspectCrop.
+
\sa {declarative/imageelements/image}{Image example}
*/
QDeclarativeImage::FillMode QDeclarativeImage::fillMode() const