aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmldesigner/data/merging/SwitchStyle.qml
blob: 9f8cffc9b7031722b44d788681d5d25aa5893824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import QtQuick 2.12

Item {
    width: 640
    height: 480

    Rectangle {
        id: switchIndicator
        x: 219
        y: 34
        width: 64
        height: 44

        color: "#e9e9e9"

        radius: 16
        border.color: "#dddddd"

        Rectangle {
            id: switchHandle //id is required for states

            width: 31
            height: 44
            radius: 16
            color: "#e9e9e9"
            border.color: "#808080"
        }
    }

    Rectangle {
        id: switchBackground
        x: 346
        y: 27
        width: 144
        height: 52
        color: "#c2c2c2"
        border.color: "#808080"

        Text {
            id: switchBackgroundText
            text: "background"
            anchors.right: parent.right

            anchors.verticalCenter: parent.verticalCenter
            anchors.rightMargin: 12
        }
    }

    Text {
        id: element
        x: 1
        y: 362
        color: "#eaeaea"
        text: qsTrId("Some stuff for reference that is thrown away")
        font.pixelSize: 32
    }

    Rectangle { //This is ignored when merging
        id: weirdStuff02
        x: 8
        y: 87
        width: 624
        height: 200
        color: "#ffffff"
    }
}