mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove location service preferences
Including the related tests. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6f813b9f8e
commit
2a0d14b100
13 changed files with 0 additions and 301 deletions
|
@ -525,40 +525,9 @@ TemplatePage {
|
|||
width: parent.width
|
||||
|
||||
GridLayout {
|
||||
id: gpsPrefs
|
||||
visible: sectionAdvanced.isExpanded
|
||||
width: parent.width
|
||||
columns: 2
|
||||
TemplateLabel {
|
||||
text: qsTr("GPS location service")
|
||||
font.pointSize: subsurfaceTheme.headingPointSize
|
||||
font.weight: Font.Light
|
||||
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||
Layout.columnSpan: 2
|
||||
}
|
||||
TemplateLabel {
|
||||
text: qsTr("Distance threshold (meters)")
|
||||
}
|
||||
TemplateTextField {
|
||||
id: distanceThreshold
|
||||
Layout.preferredWidth: Kirigami.Units.gridUnit * 2
|
||||
text: PrefLocationService.distance_threshold
|
||||
onEditingFinished: {
|
||||
PrefLocationService.distance_threshold = distanceThreshold.text
|
||||
}
|
||||
}
|
||||
TemplateLabel {
|
||||
text: qsTr("Time threshold (minutes)")
|
||||
}
|
||||
TemplateTextField {
|
||||
id: timeThreshold
|
||||
Layout.preferredWidth: Kirigami.Units.gridUnit * 2
|
||||
text: PrefLocationService.time_threshold / 60
|
||||
onEditingFinished: {
|
||||
PrefLocationService.time_threshold = timeThreshold.text * 60
|
||||
}
|
||||
}
|
||||
|
||||
TemplateLine {
|
||||
visible: sectionAdvanced.isExpanded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue