summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-10-05 05:34:59 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-10-05 05:34:59 (GMT)
commit47284ca360c1875663207996740bf6ed6e93d364 (patch)
tree02496fb98624fc56cd8614067028118f55710ed1 /src/declarative
parent4bc735e48020c23aaa99c006ed014214a82c1a68 (diff)
downloadQt-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.cpp9
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);