mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Implements #75, reordering of quick settings, and also includes the mobile form components into the kcm.
37 lines
756 B
QML
37 lines
756 B
QML
/*
|
|
* Copyright 2022 Devin Lin <devin@kde.org>
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import org.kde.kirigami 2.19 as Kirigami
|
|
|
|
AbstractFormDelegate {
|
|
id: root
|
|
|
|
property string text: ""
|
|
property alias checked: radioButtonItem.checked
|
|
property alias radioButton: radioButtonItem
|
|
|
|
onClicked: checked = true;
|
|
|
|
Layout.fillWidth: true
|
|
|
|
contentItem: RowLayout {
|
|
RadioButton {
|
|
id: radioButtonItem
|
|
Layout.rightMargin: Kirigami.Units.largeSpacing
|
|
}
|
|
|
|
Label {
|
|
text: root.text
|
|
elide: Text.ElideRight
|
|
Layout.fillWidth: true
|
|
}
|
|
}
|
|
}
|
|
|
|
|