aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/controls/data/switch/switch.qml
blob: b19e9d4cfcab95e489e3d6811a431468c8e64b24 (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
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

ColumnLayout {
    spacing: 2
    width: 200

    Switch {
        text: qsTr("First")
    }

    Switch {
        text: qsTr("Second")
        checked: true
    }

    Switch {
        text: qsTr("Third")
        enabled: false
    }

    Switch {
        text: qsTr("Fourth")
        LayoutMirroring.enabled: true
    }

    Switch {
        text: qsTr("Sixth")
        focus: true
    }

    Switch {
        text: qsTr("Seventh")
        down: true
    }
}