summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeimage.cpp
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-04-19 05:49:44 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-04-19 05:50:23 (GMT)
commit8e414cb69e1d27b66f51cd68a7126c5ac647c974 (patch)
tree399c9654a9316168220bc11f82d938921c75479f /src/declarative/graphicsitems/qdeclarativeimage.cpp
parentcb54ab7c6f60cadc85c25750a1b2aa3bc96a1505 (diff)
downloadQt-8e414cb69e1d27b66f51cd68a7126c5ac647c974.zip
Qt-8e414cb69e1d27b66f51cd68a7126c5ac647c974.tar.gz
Qt-8e414cb69e1d27b66f51cd68a7126c5ac647c974.tar.bz2
Documentation fixes.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativeimage.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeimage.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeimage.cpp b/src/declarative/graphicsitems/qdeclarativeimage.cpp
index 1ca8fe2..247e348 100644
--- a/src/declarative/graphicsitems/qdeclarativeimage.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeimage.cpp
@@ -236,9 +236,12 @@ qreal QDeclarativeImage::paintedHeight() const
to react to the change in status you need to do it yourself, for example in one
of the following ways:
\list
- \o Create a state, so that a state change occurs, e.g. State{name: 'loaded'; when: image.status = Image.Ready;}
- \o Do something inside the onStatusChanged signal handler, e.g. Image{id: image; onStatusChanged: if(image.status == Image.Ready) console.log('Loaded');}
- \o Bind to the status variable somewhere, e.g. Text{text: if(image.status!=Image.Ready){'Not Loaded';}else{'Loaded';}}
+ \o Create a state, so that a state change occurs, e.g.
+ \qml State { name: 'loaded'; when: image.status = Image.Ready } \endqml
+ \o Do something inside the onStatusChanged signal handler, e.g.
+ \qml Image { id: image; onStatusChanged: if (image.status == Image.Ready) console.log('Loaded') } \endqml
+ \o Bind to the status variable somewhere, e.g.
+ \qml Text { text: if (image.status != Image.Ready) { 'Not Loaded' } else { 'Loaded' } } \endqml
\endlist
\sa progress