Debian Codegraph @

tests/benchmarks/qml/librarymetrics_performance/data/states.1.qml

raw
1 import QtQuick 2.0
2
3 Item {
4 id: root
5 width: 320
6 height: 480
7
8 property real a: 200
9 property real b: 10
10
11 states: [
12 State {
13 name: "first"
14 PropertyChanges { target: root; onBChanged: setA_1() }
15 },
16 State {
17 name: "second"
18 PropertyChanges { target: root; onBChanged: setA_2() }
19 }
20 ]
21
22 function setA_1() { a = 50; }
23 function setA_2() { a = 100; }
24 }