2022-11-17 07:35:18 +00:00
|
|
|
// Copyright (C) 2022 The Qt Company Ltd.
|
2024-02-22 14:51:16 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2022-11-17 07:35:18 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls.Material
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
import ".."
|
|
|
|
|
|
|
|
Page {
|
|
|
|
topPadding: Constants.pageTopPadding
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
spacing: 40
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Switch"
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Checked Switch"
|
|
|
|
checked: true
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Disabled Switch"
|
|
|
|
enabled: false
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Checked disabled Switch"
|
|
|
|
checked: true
|
|
|
|
enabled: false
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
spacing: 40
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Switch"
|
|
|
|
icon.source: Constants.iconSource
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Checked Switch"
|
|
|
|
icon.source: Constants.iconSource
|
|
|
|
checked: true
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Disabled Switch"
|
|
|
|
icon.source: Constants.iconSource
|
|
|
|
enabled: false
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Switch {
|
|
|
|
text: "Checked disabled Switch"
|
|
|
|
icon.source: Constants.iconSource
|
|
|
|
checked: true
|
|
|
|
enabled: false
|
2024-01-19 17:06:58 +00:00
|
|
|
Layout.fillWidth: false
|
2022-11-17 07:35:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|