diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-15 06:53:12 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-15 06:53:12 (GMT) |
commit | 55a33571a2cbf8187f5533125f961316f866fca2 (patch) | |
tree | 493a01f4e65aed9e7ac6d9a41a1ef5a8775eb3c7 | |
parent | d8a49ccfb8308aec11cd24e823c297ef157cc4c6 (diff) | |
download | Qt-55a33571a2cbf8187f5533125f961316f866fca2.zip Qt-55a33571a2cbf8187f5533125f961316f866fca2.tar.gz Qt-55a33571a2cbf8187f5533125f961316f866fca2.tar.bz2 |
Doc
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index 5cc6639..3e4651c 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -120,6 +120,26 @@ Item { } } \endqml + + \e onDestruction + + Emitted as the component begins destruction. This can be used to undo + work done in the onCompleted signal, or other imperative code in your + application. + + The \c {Component::onDestruction} attached property can be applied to + any element. However, it applies to the destruction of the component as + a whole, and not the destruction of the specific object. The order of + running the \c onDestruction scripts is undefined. + + \qml + Rectangle { + Component.onDestruction: console.log("Destruction Beginning!") + Rectangle { + Component.onDestruction: console.log("Nested Destruction Beginning!") + } + } + \endqml */ /*! |