Commit 1a171706 authored by Filip Fila's avatar Filip Fila 🌆

[quickshare] Port configuration window to QQC2 and Kirigami.FormLayout

Summary: This patch ports quickshare's configuration window to QQC2 and Kirigami.FormLayout, as well as matches the General category's icon with the applet's icon.

Test Plan:
Before:
{F6682551}

After:
{F6682552}

Reviewers: #vdg, #plasma, apol, ngraham

Reviewed By: #vdg, apol, ngraham

Subscribers: abetts, apol, plasma-devel

Tags: #plasma

Maniphest Tasks: T10586

Differential Revision: https://phabricator.kde.org/D19664
parent 7437b39c
......@@ -25,7 +25,7 @@ import org.kde.plasma.configuration 2.0
ConfigModel {
ConfigCategory {
name: i18nc("@title", "General")
icon: "edit-paste"
icon: "emblem-shared-symbolic"
source: "settingsGeneral.qml"
}
}
......@@ -18,44 +18,29 @@
***************************************************************************/
import QtQuick 2.2
import QtQuick.Controls 1.0 as QtControls
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.5
import org.kde.kirigami 2.5 as Kirigami
ColumnLayout {
Kirigami.FormLayout {
id: configRoot
anchors.left: parent.left
anchors.right: parent.right
property alias cfg_historySize: historySpin.value
property alias cfg_copyAutomatically: copyAutomatically.checked
GridLayout {
columns: 2
QtControls.Label {
Layout.row: 0
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18nc("@label:spinbox", "History size:")
}
QtControls.SpinBox {
id: historySpin
Layout.row: 0
Layout.column: 1
value: 3
}
QtControls.Label {
Layout.row: 1
Layout.column: 0
Layout.alignment: Qt.AlignRight
text: i18nc("@option:check", "Copy automatically:")
}
QtControls.CheckBox {
Layout.row: 1
Layout.column: 1
id: copyAutomatically
}
SpinBox {
id: historySpin
Kirigami.FormData.label: i18nc("@label:spinbox", "History size:")
value: 3
}
Item {
Layout.fillHeight: true
Kirigami.FormData.isSection: false
}
CheckBox {
id: copyAutomatically
Kirigami.FormData.label: i18nc("@option:check", "Copy automatically:")
}
}
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