summaryrefslogtreecommitdiffstats
path: root/tests/manual/examples/quick/customdialogs/SwitchButton.qml
blob: 69fc1427e3082c497d2b5fb59a58b4431b3f4bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Item {
    width: parent.width
    height: 40
    property alias checked: switcher.checked
    RowLayout {
        anchors.centerIn: parent
        Text {
            text: qsTr("Use default dialogs")
            font.pointSize: 12
        }
        Switch {
            id: switcher
            checked: true
        }
    }
}