summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-14 06:07:44 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-14 06:09:17 (GMT)
commit2cb6b94e4587f32a109e0b7c2283978f3d78c649 (patch)
tree16f10ed8847ad66147fbb186e506afbc7f8cadce /src/declarative/util
parenta02233bb18706569fb78ccfaa1f6c05d5523bc3d (diff)
downloadQt-2cb6b94e4587f32a109e0b7c2283978f3d78c649.zip
Qt-2cb6b94e4587f32a109e0b7c2283978f3d78c649.tar.gz
Qt-2cb6b94e4587f32a109e0b7c2283978f3d78c649.tar.bz2
ParentChange docs
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qmlstateoperations.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp
index 07eb641..60fd421 100644
--- a/src/declarative/util/qmlstateoperations.cpp
+++ b/src/declarative/util/qmlstateoperations.cpp
@@ -114,7 +114,16 @@ void QmlParentChangePrivate::doChange(QFxItem *targetParent, QFxItem *stackBefor
/*!
\preliminary
\qmlclass ParentChange
- \brief The ParentChange element allows you to reparent an object in a state.
+ \brief The ParentChange element allows you to reparent an Item in a state change.
+
+ ParentChange reparents an Item while preserving its visual appearance (position, rotation,
+ and scale) on screen. You can then specify a transition to move/rotate/scale the Item to
+ its final intended appearance.
+
+ ParentChange can only preserve visual appearance if no complex transforms are involved.
+ More specifically, it will not work if the transform property has been set for any
+ Items involved in the reparenting (defined as any Items in the common ancestor tree
+ for the original and new parent).
*/
QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParentChange,QmlParentChange)