diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-09 08:04:48 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-09 23:36:32 (GMT) |
commit | 4a36a17e06b3ec7c20bcef9692d46dba5504151a (patch) | |
tree | 736843e2bab5e7a5a553a70234ab3d29ff5753fa /src/declarative/util/qdeclarativestateoperations.cpp | |
parent | ce8a3100868e2c545d0af3332e9b801c1fd0bc3f (diff) | |
download | Qt-4a36a17e06b3ec7c20bcef9692d46dba5504151a.zip Qt-4a36a17e06b3ec7c20bcef9692d46dba5504151a.tar.gz Qt-4a36a17e06b3ec7c20bcef9692d46dba5504151a.tar.bz2 |
Doc improvements: move some example code to snippets, add screenshots,
other minor doc fixes
Diffstat (limited to 'src/declarative/util/qdeclarativestateoperations.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativestateoperations.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativestateoperations.cpp b/src/declarative/util/qdeclarativestateoperations.cpp index 2d55931..51e6f99 100644 --- a/src/declarative/util/qdeclarativestateoperations.cpp +++ b/src/declarative/util/qdeclarativestateoperations.cpp @@ -172,6 +172,14 @@ void QDeclarativeParentChangePrivate::doChange(QDeclarativeItem *targetParent, Q items involved in the reparenting (i.e. items in the common ancestor tree for the original and new parent). + The example below displays a large red rectangle and a small blue rectangle, side by side. + When the \c blueRect is clicked, it changes to the "reparented" state: its parent is changed to \c redRect and it is + positioned at (10, 10) within the red rectangle, as specified in the ParentChange. + + \snippet doc/src/snippets/declarative/parentchange.qml 0 + + \image parentchange.png + You can specify at which point in a transition you want a ParentChange to occur by using a ParentAnimation. */ @@ -698,6 +706,8 @@ QString QDeclarativeStateChangeScript::typeName() const \snippet doc/src/snippets/declarative/anchorchanges.qml 0 + \image anchorchanges.png + AnchorChanges can be animated using AnchorAnimation. \qml //animate our anchor changes |