aboutsummaryrefslogtreecommitdiffstats
path: root/sysui/Cloud/Settings/SettingsScreen.qml
diff options
context:
space:
mode:
Diffstat (limited to 'sysui/Cloud/Settings/SettingsScreen.qml')
-rw-r--r--sysui/Cloud/Settings/SettingsScreen.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysui/Cloud/Settings/SettingsScreen.qml b/sysui/Cloud/Settings/SettingsScreen.qml
index bf0a67a..b418c6d 100644
--- a/sysui/Cloud/Settings/SettingsScreen.qml
+++ b/sysui/Cloud/Settings/SettingsScreen.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2015 Pelagicore AG
+** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
@@ -55,6 +55,14 @@ UIElement {
titleText: model.title
checked: model.checked
hasChildren: model.hasChildren
+ onClicked: {
+ if ( titleText === "METRIC SYSTEM") {
+ if (checked)
+ SettingsService.unitSystem = "imp_us"
+ else
+ SettingsService.unitSystem = "metric"
+ }
+ }
}
}