projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qml
/
qqmlecmascript
/
data
/
RootObject.qml
1
import QtQuick 2.0
2
3
Rectangle {
4
id: root
5
color:"red"
6
property bool rootIndestructible:false
7
property bool childDestructible:child === null
8
onColorChanged: {
9
try {
10
root.destroy();
11
gc();
12
} catch(e) {
13
rootIndestructible = true;
14
}
15
}
16
17
QtObject {
18
id:child
19
}
20
Component.onCompleted: child.destroy();
21
}