2020-08-20 00:14:19 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2019 David Edmundson <kde@davidedmundson.co.uk>
|
|
|
|
* SPDX-FileCopyrightText: 2020 Nate Graham <nate@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
|
|
|
|
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
*/
|
2019-09-10 12:35:55 +02:00
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick.Layouts 1.2
|
2020-08-18 11:45:23 +02:00
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
2019-09-10 12:35:55 +02:00
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
ComponentBase {
|
2020-08-18 11:45:23 +02:00
|
|
|
id: root
|
|
|
|
title: "Plasma Components 3 CheckBox"
|
|
|
|
contentItem: GridLayout {
|
|
|
|
columnSpacing: PlasmaCore.Units.largeSpacing
|
|
|
|
rowSpacing: PlasmaCore.Units.smallSpacing
|
2019-09-10 12:35:55 +02:00
|
|
|
columns: 2
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "text"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
}
|
2020-07-23 16:38:14 +02:00
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
text: "icon"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
icon.name: "start-here-kde-plasma"
|
|
|
|
}
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
|
|
|
text: "text plus icon"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "text"
|
|
|
|
icon.name: "start-here-kde-plasma"
|
|
|
|
}
|
2019-09-10 12:35:55 +02:00
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "focus"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
focus: true
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
checkState: Qt.Checked
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "tri-state"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
checkState: Qt.PartiallyChecked
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "disabled"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
enabled: false
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "disabled and checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.CheckBox {
|
|
|
|
text: "Some awesome checkbox"
|
|
|
|
enabled: false
|
|
|
|
checkState: Qt.Checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|