diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2011-03-17 06:12:29 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2011-03-17 06:14:22 (GMT) |
commit | cb0b93e3ef107b8a47445c926753b6bcf07b796d (patch) | |
tree | e11ef9fc553dee7181cec0e3913e653ddb9bd863 /src | |
parent | 82a53835a71a8e1902774c67e792bf6d7d6385de (diff) | |
download | Qt-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')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeimage.cpp | 7 |
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 |