/* * SPDX-FileCopyrightText: 2019 David Edmundson * SPDX-FileCopyrightText: 2020 George Vogiatzis * SPDX-FileCopyrightText: 2020 Noah Davis * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick import QtQuick.Layouts import org.kde.plasma.components as PlasmaComponents import org.kde.kirigami as Kirigami ComponentBase { id: root title: "Plasma Components 3 RadioButton" contentItem: GridLayout { columnSpacing: Kirigami.Units.gridUnit rowSpacing: Kirigami.Units.smallSpacing columns: 2 PlasmaComponents.Label { text: "text" } PlasmaComponents.RadioButton { text: "Some awesome radiobutton" } PlasmaComponents.Label { text: "focus" } PlasmaComponents.RadioButton { text: "Some awesome radiobutton" focus: true } PlasmaComponents.Label { text: "checked" } PlasmaComponents.RadioButton { text: "Some awesome radiobutton" checked: true } PlasmaComponents.Label { text: "disabled" } PlasmaComponents.RadioButton { text: "Some awesome radiobutton" enabled: false } PlasmaComponents.Label { text: "disabled and checked" } PlasmaComponents.RadioButton { text: "Some awesome radiobutton" enabled: false checked: true } } }