aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/dialog.qml
blob: d33a082741d552f554c35d08d0e05a7f567b53b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick
import QtQuick.Templates as T
import QtQuick.Controls.Basic

T.Dialog {
    id: control
    header: Label {
        background: Rectangle {
            width: parent.width + 1
            height: parent.height - 1
        }
    }

    property var n: 10
    property var a: {
        var x = 1;
        for (var i=0; i<n; ++i)
            x = x + x;
        return x;
    }
}