2020-08-20 00:14:19 +02:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2019 David Edmundson <kde@davidedmundson.co.uk>
|
|
|
|
* SPDX-FileCopyrightText: 2020 George Vogiatzis <Gvgeo@protonmail.com>
|
|
|
|
* 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 RadioButton"
|
|
|
|
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.RadioButton {
|
|
|
|
text: "Some awesome radiobutton"
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "focus"
|
|
|
|
}
|
|
|
|
PlasmaComponents.RadioButton {
|
|
|
|
text: "Some awesome radiobutton"
|
|
|
|
focus: true
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "checked"
|
|
|
|
}
|
|
|
|
PlasmaComponents.RadioButton {
|
|
|
|
text: "Some awesome radiobutton"
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:33:23 +01:00
|
|
|
PlasmaComponents.Label {
|
2019-09-10 12:35:55 +02:00
|
|
|
text: "disabled"
|
|
|
|
}
|
|
|
|
PlasmaComponents.RadioButton {
|
|
|
|
text: "Some awesome radiobutton"
|
|
|
|
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.RadioButton {
|
|
|
|
text: "Some awesome radiobutton"
|
|
|
|
enabled: false
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|