Warning, /plasma/libplasma/tests/components/radiobutton3.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2019 David Edmundson <kde@davidedmundson.co.uk>
0003  * SPDX-FileCopyrightText: 2020 George Vogiatzis <Gvgeo@protonmail.com>
0004  * SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  */
0007 import QtQuick
0008 import QtQuick.Layouts
0009 import org.kde.plasma.components as PlasmaComponents
0010 import org.kde.kirigami as Kirigami
0011 
0012 ComponentBase {
0013     id: root
0014     title: "Plasma Components 3 RadioButton"
0015     contentItem: GridLayout {
0016         columnSpacing: Kirigami.Units.gridUnit
0017         rowSpacing: Kirigami.Units.smallSpacing
0018         columns: 2
0019 
0020         PlasmaComponents.Label {
0021             text: "text"
0022         }
0023         PlasmaComponents.RadioButton {
0024             text: "Some awesome radiobutton"
0025         }
0026 
0027         PlasmaComponents.Label {
0028             text: "focus"
0029         }
0030         PlasmaComponents.RadioButton {
0031             text: "Some awesome radiobutton"
0032             focus: true
0033         }
0034 
0035         PlasmaComponents.Label {
0036             text: "checked"
0037         }
0038         PlasmaComponents.RadioButton {
0039             text: "Some awesome radiobutton"
0040             checked: true
0041         }
0042 
0043         PlasmaComponents.Label {
0044             text: "disabled"
0045         }
0046         PlasmaComponents.RadioButton {
0047             text: "Some awesome radiobutton"
0048             enabled: false
0049         }
0050 
0051         PlasmaComponents.Label {
0052             text: "disabled and checked"
0053         }
0054         PlasmaComponents.RadioButton {
0055             text: "Some awesome radiobutton"
0056             enabled: false
0057             checked: true
0058         }
0059     }
0060 }
0061