Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativestates / data / QTBUG-14830.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     width: 1024
5     height: 768
6
7     Item {
8         id: area
9         objectName: "area"
10         property int numx: 6
11         property int cellwidth: 1024/numx
12
13         onWidthChanged: {
14             width = width>1024?1024:width;
15         }
16
17         state: 'minimal'
18         states: [
19             State {
20                 name: 'minimal'
21                 PropertyChanges {
22                     target: area
23                     width: cellwidth
24                 }
25             }
26         ]
27
28     }
29 }