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
/
propertyVar.14.qml
1
import QtQuick 2.0
2
3
Item {
4
property bool test: false
5
property var f
6
property int a: 100
7
property int b
8
9
function testFunction() {
10
return a * 3;
11
}
12
13
Component.onCompleted: {
14
b = Qt.binding(testFunction);
15
f = Qt.binding(function() { return b + 12; });
16
if (f != 312) return;
17
a = 120;
18
if (f != 372) return;
19
test = true;
20
}
21
}