mobile-widgets: move distanceThreshold handling to qPref

Remove distanceThreshold from qmlprefs and use qPref instead
update qml

no user experience change

Signed-off-by: Jan Iversen <jani@apache.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2018-09-12 09:12:03 +02:00 committed by Dirk Hohndel
parent c454f6954f
commit baa828e900
4 changed files with 2 additions and 26 deletions

View file

@ -278,11 +278,10 @@ Kirigami.ScrollablePage {
Controls.TextField {
id: distanceThreshold
text: prefs.distanceThreshold
text: PrefLocationService.distance_threshold
Layout.preferredWidth: gridWidth * 0.25
onEditingFinished: {
prefs.distanceThreshold = distanceThreshold.text
manager.savePreferences()
PrefLocationService.distance_threshold = distanceThreshold.text
}
}