summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-05 04:19:15 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-05 04:19:15 (GMT)
commit0b4d84e3980e415df3078e97d44ee5216fbbff07 (patch)
tree07ce1e758ec9506491a32ef77905f4732cdc43f0 /src/declarative
parentcb486319b599eccbc40166d0b3d057d11d92759c (diff)
downloadQt-0b4d84e3980e415df3078e97d44ee5216fbbff07.zip
Qt-0b4d84e3980e415df3078e97d44ee5216fbbff07.tar.gz
Qt-0b4d84e3980e415df3078e97d44ee5216fbbff07.tar.bz2
Doc fix.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/util/qdeclarativestateoperations.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativestateoperations.cpp b/src/declarative/util/qdeclarativestateoperations.cpp
index cd06380..f13c691 100644
--- a/src/declarative/util/qdeclarativestateoperations.cpp
+++ b/src/declarative/util/qdeclarativestateoperations.cpp
@@ -562,7 +562,11 @@ QString QDeclarativeStateChangeScript::typeName() const
\brief The AnchorChanges element allows you to change the anchors of an item in a state.
In the following example we change the top and bottom anchors of an item:
- \snippet examples/declarative/anchors/anchor-changes.qml 0
+ \qml
+ AnchorChanges {
+ target: content; top: window.top; bottom: window.bottom
+ }
+ \endqml
AnchorChanges will 'inject' \c x, \c y, \c width, and \c height changes into the transition,
so you can animate them as you would normally changes to these properties: