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