projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativebehaviors
/
data
/
simple.qml
1
import QtQuick 1.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
objectName: "MyBehavior";
11
NumberAnimation {id: na; duration: 500; }
12
}
13
}
14
MouseArea {
15
id: clicker
16
anchors.fill: parent
17
}
18
states: State {
19
name: "moved"
20
when: clicker.pressed
21
PropertyChanges {
22
target: rect
23
x: 200
24
}
25
}
26
}