projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rename QDeclarative symbols to QQuick and QQml
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qml
/
qquickbinding
/
data
/
restoreBindingWithLoop.qml
1
import QtQuick 2.0
2
3
Rectangle {
4
width: 400
5
height: 400
6
7
property bool activateBinding: false
8
9
Rectangle {
10
id: myItem
11
objectName: "myItem"
12
width: 100
13
height: 100
14
color: "green"
15
x: myItem.y + 100
16
onXChanged: { if (x == 188) y = 90; } //create binding loop
17
18
Binding on x {
19
when: activateBinding
20
value: myItem.y
21
}
22
}
23
}