mobile-widgets: move rest of gridlayout to section advanced

Create section advanced around the remaining gridlayouts, and adjust.

Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-15 19:55:16 +01:00 committed by Dirk Hohndel
parent 5bce4895cc
commit 11c6851c74

View file

@ -380,8 +380,13 @@ Kirigami.ScrollablePage {
}
}
TemplateSection {
id: sectionAdvanced
title: qsTr("Advanced")
GridLayout {
id: gpsPrefs
visible: sectionAdvanced.isExpanded
columns: 2
TemplateLabel {
@ -420,17 +425,13 @@ Kirigami.ScrollablePage {
PrefLocationService.time_threshold = timeThreshold.text * 60
}
}
}
Rectangle {
color: subsurfaceTheme.darkerPrimaryColor
height: 1
opacity: 0.5
Layout.fillWidth: true
TemplateLine {
visible: sectionAdvanced.isExpanded
}
GridLayout {
id: filterPrefs
visible: sectionAdvanced.isExpanded
columns: 2
TemplateLabel {
@ -468,18 +469,13 @@ Kirigami.ScrollablePage {
PrefGeneral.filterCaseSensitive = checked
}
}
}
Rectangle {
color: subsurfaceTheme.darkerPrimaryColor
height: 1
opacity: 0.5
Layout.fillWidth: true
TemplateLine {
visible: sectionAdvanced.isExpanded
}
GridLayout {
id: whichBluetoothDevices
visible: sectionAdvanced.isExpanded
columns: 2
TemplateLabel {
text: qsTr("Bluetooth")
@ -503,16 +499,12 @@ Kirigami.ScrollablePage {
}
}
}
Rectangle {
color: subsurfaceTheme.darkerPrimaryColor
height: 1
opacity: 0.5
Layout.fillWidth: true
TemplateLine {
visible: sectionAdvanced.isExpanded
}
GridLayout {
id: developer
visible: sectionAdvanced.isExpanded
columns: 2
TemplateLabel {
text: qsTr("Developer")
@ -536,8 +528,6 @@ Kirigami.ScrollablePage {
}
}
}
Item {
height: Kirigami.Units.gridUnit * 6
}
}
}