diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-15 06:54:57 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-15 06:54:57 (GMT) |
commit | e12858812fcad96b9e6eb4c7d61300103d346734 (patch) | |
tree | a9f26e98723762146aa05242827f9047a891a226 /src/declarative | |
parent | eaf1a714c2bcd087a538ba6c11bb656181923a8c (diff) | |
parent | 55a33571a2cbf8187f5533125f961316f866fca2 (diff) | |
download | Qt-e12858812fcad96b9e6eb4c7d61300103d346734.zip Qt-e12858812fcad96b9e6eb4c7d61300103d346734.tar.gz Qt-e12858812fcad96b9e6eb4c7d61300103d346734.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/declarative')
-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 */ /*! |