Commit 6be6a8c0 authored by Filip Fila's avatar Filip Fila 🌆

[DeviceNotifier] Port settings to QQC2 and Kirigami

Summary: Settings are ported to QtQuickControls 2 and now use a Kirigami Form Layout.

Test Plan:
Before:
{F6633459}
After:
{F6633461}

Reviewers: #vdg, #plasma, ngraham, davidedmundson

Reviewed By: #vdg, #plasma, ngraham, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19289
parent f75e1d18
......@@ -17,49 +17,40 @@
*/
import QtQuick 2.0
import QtQuick.Controls 1.1 as Controls
import QtQuick.Layouts 1.1 as Layouts
import org.kde.plasma.core 2.0 as PlasmaCore
import QtQuick.Controls 2.5
import org.kde.kirigami 2.4 as Kirigami
Item {
id: iconsPage
width: childrenRect.width
height: childrenRect.height
implicitWidth: mainColumn.implicitWidth
implicitHeight: mainColumn.implicitHeight
property alias cfg_removableDevices: removableOnly.checked
property alias cfg_nonRemovableDevices: nonRemovableOnly.checked
property alias cfg_allDevices: allDevices.checked
property alias cfg_popupOnNewDevice: autoPopup.checked
Layouts.ColumnLayout {
id: mainColumn
Kirigami.FormLayout {
anchors.left: parent.left
Controls.ExclusiveGroup{
id: deviceFilter
}
Controls.RadioButton {
anchors.right: parent.right
RadioButton {
id: removableOnly
Kirigami.FormData.label: i18n("Show:")
text: i18n("Removable devices only")
exclusiveGroup: deviceFilter
}
Controls.RadioButton {
RadioButton {
id: nonRemovableOnly
text: i18n("Non-removable devices only")
exclusiveGroup: deviceFilter
}
Controls.RadioButton {
RadioButton {
id: allDevices
text: i18n("All devices")
exclusiveGroup: deviceFilter
}
Controls.CheckBox {
CheckBox {
id: autoPopup
Layouts.Layout.fillWidth: true
text: i18n("Open popup when new device is plugged in")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment