summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxanimatedimageitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxanimatedimageitem.cpp')
-rw-r--r--src/declarative/fx/qfxanimatedimageitem.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/declarative/fx/qfxanimatedimageitem.cpp b/src/declarative/fx/qfxanimatedimageitem.cpp
index 8f930d5..5a495e9 100644
--- a/src/declarative/fx/qfxanimatedimageitem.cpp
+++ b/src/declarative/fx/qfxanimatedimageitem.cpp
@@ -67,11 +67,13 @@ QT_BEGIN_NAMESPACE
\o \image animatedimageitem.gif
\o
\code
-<Item width="{anim.width}" height="{anim.height+8}">
- <AnimatedImage id="anim" file="pics/games-anim.gif"/>
- <Rect color="red" width="4" height="8" y="{anim.height}"
- x="{(anim.width-width)*anim.currentFrame/(anim.frameCount-1)}"/>
-</Item>
+Item {
+ width: anim.width; height: anim.height+8
+ AnimatedImage { id: anim; source: "pics/games-anim.gif" }
+ Rect { color: "red"; width: 4; height: 8; y: anim.height
+ x: (anim.width-width)*anim.currentFrame/(anim.frameCount-1)
+ }
+}
\endcode
\endtable
*/