diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-10-05 05:34:59 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-10-05 05:34:59 (GMT) |
commit | 47284ca360c1875663207996740bf6ed6e93d364 (patch) | |
tree | 02496fb98624fc56cd8614067028118f55710ed1 /src/declarative | |
parent | 4bc735e48020c23aaa99c006ed014214a82c1a68 (diff) | |
download | Qt-47284ca360c1875663207996740bf6ed6e93d364.zip Qt-47284ca360c1875663207996740bf6ed6e93d364.tar.gz Qt-47284ca360c1875663207996740bf6ed6e93d364.tar.bz2 |
Document and test paintedWidth and paintedHeight properties of Image
Task-number: QTBUG-14197
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeimage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage.cpp b/src/declarative/graphicsitems/qdeclarativeimage.cpp index 9cd9ad6..08d237f 100644 --- a/src/declarative/graphicsitems/qdeclarativeimage.cpp +++ b/src/declarative/graphicsitems/qdeclarativeimage.cpp @@ -253,6 +253,15 @@ void QDeclarativeImage::setFillMode(FillMode mode) emit fillModeChanged(); } +/*! + + \qmlproperty real Image::paintedWidth + \qmlproperty real Image::paintedHeight + + These properties hold the size of the image that is actually painted. + In most cases it is the same as \c width and \c height, but when using a \c fillMode like + \c PreserveAspectFit \c paintedWidth or \c paintedHeight can be smaller than \c width and \c height. +*/ qreal QDeclarativeImage::paintedWidth() const { Q_D(const QDeclarativeImage); |