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
/
qdeclarativestates
/
data
/
basicChanges4.qml
1
import Qt.test 1.0
2
import QtQuick 1.0
3
4
MyRectangle {
5
id: rect
6
width: 100; height: 100
7
color: "red"
8
9
states: State {
10
name: "aBlueDay"
11
PropertyChanges {
12
target: rect
13
onPropertyWithNotifyChanged: { rect.color = "blue"; }
14
}
15
}
16
17
Component.onCompleted: rect.state = "aBlueDay"
18
}
19