diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-04-19 22:34:56 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-04-19 22:35:22 (GMT) |
commit | 18cbadd8edd233b843d04441a05788264da0a67b (patch) | |
tree | b5be1ff83a0f53260163507f6cb3ef1c1a386c28 | |
parent | af4322e8d284d4ccc137fe0a8b5a8f340720e82b (diff) | |
download | Qt-18cbadd8edd233b843d04441a05788264da0a67b.zip Qt-18cbadd8edd233b843d04441a05788264da0a67b.tar.gz Qt-18cbadd8edd233b843d04441a05788264da0a67b.tar.bz2 |
Doc fix.
-rw-r--r-- | src/declarative/util/qdeclarativestateoperations.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/declarative/util/qdeclarativestateoperations.cpp b/src/declarative/util/qdeclarativestateoperations.cpp index 56ed335..082a869 100644 --- a/src/declarative/util/qdeclarativestateoperations.cpp +++ b/src/declarative/util/qdeclarativestateoperations.cpp @@ -601,15 +601,22 @@ QString QDeclarativeStateChangeScript::typeName() const In the following example we change the top and bottom anchors of an item: \qml - AnchorChanges { - target: content; top: window.top; bottom: window.bottom + State { + name: "reanchored" + AnchorChanges { + target: content; + anchors.top: window.top; + anchors.bottom: window.bottom + } } \endqml AnchorChanges can be animated using AnchorAnimation. \qml //animate our anchor changes - AnchorAnimation {} + Transition { + AnchorAnimation {} + } \endqml For more information on anchors see \l {anchor-layout}{Anchor Layouts}. |