Commit 191a901d authored by Nate Graham's avatar Nate Graham 🔩

[containment] Modernize tweaks page layout and port to QQC2

Summary:
Port the page to QQC2 and modernize the layout, using modern Kirigami APIs

This patch removes the invisible group boxes and headers since it seems
unnecessary to give each checkbox in a two-checkbox layout its own private
title. The labels are clear enough already.

Test Plan:
{F6613694}

Everything still works

Reviewers: #vdg, #plasma, mart

Reviewed By: #vdg, #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18990
parent 0af980f5
......@@ -18,9 +18,10 @@
***************************************************************************/
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Controls 2.0
import QtQuick.Dialogs 1.1
import QtQuick.Layouts 1.0
import org.kde.kirigami 2.4 as Kirigami
import org.kde.plasma.plasmoid 2.0
......@@ -33,42 +34,18 @@ Item {
property alias cfg_showToolbox: showToolbox.checked
property alias cfg_pressToMove: pressToMove.checked
ColumnLayout {
width: parent.width
Kirigami.FormLayout {
GroupBox {
Layout.fillWidth: true
CheckBox {
id: showToolbox
title: i18n("Desktop Layout")
flat: true
ColumnLayout {
Layout.fillWidth: true
CheckBox {
id: showToolbox
text: i18n("Show the desktop toolbox")
}
}
text: i18n("Show the desktop toolbox")
}
GroupBox {
Layout.fillWidth: true
title: i18n("Widget Handling")
flat: true
ColumnLayout {
Layout.fillWidth: true
CheckBox {
id: pressToMove
CheckBox {
id: pressToMove
text: i18n("Press and hold widgets to move them and reveal their handles")
}
}
text: i18n("Press and hold widgets to move them and reveal their handles")
}
}
}
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