aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeincubator/data/setInitialState.qml
blob: 0fd61abfd20720319c694f9c1280604d0e4e3283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import QtQuick 2.0

QtObject {
    property int test1: (testData1 * 32 + 99) / testData2
    property int test2: myValueFunction()

    property bool myValueFunctionCalled: false

    property int testData1: 19
    property int testData2: 13

    function myValueFunction() {
        myValueFunctionCalled = true;
        return 13;
    }
}