projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d8f115390aee753bee205d3ed36a10730699637c
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
qtquick2
/
qdeclarativebehaviors
/
data
/
empty.qml
1
import QtQuick 2.0
2
Rectangle {
3
width: 400
4
height: 400
5
Rectangle {
6
id: rect
7
objectName: "MyRect"
8
width: 100; height: 100; color: "green"
9
Behavior on x {}
10
}
11
MouseArea {
12
id: clicker
13
anchors.fill: parent
14
}
15
states: State {
16
name: "moved"
17
when: clicker.pressed
18
PropertyChanges {
19
target: rect
20
x: 200
21
}
22
}
23
}