From 0b60c96da74b9a348969946f8a12efb3aaeae391 Mon Sep 17 00:00:00 2001 From: Nedim Hadzic Date: Thu, 6 Oct 2016 10:50:44 +0200 Subject: [PATCH] Automatic speed unit update Make speed unit depend on the system unit system setup. Change-Id: I2545dfbe3f4656fbe6e6b310ac8abd7e3c3bad71 Reviewed-by: Dominik Holland --- sysui/Cluster/LeftDial.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysui/Cluster/LeftDial.qml b/sysui/Cluster/LeftDial.qml index 9321b70..8154c0c 100644 --- a/sysui/Cluster/LeftDial.qml +++ b/sysui/Cluster/LeftDial.qml @@ -33,6 +33,7 @@ import QtQuick 2.1 import QtGraphicalEffects 1.0 import utils 1.0 import models 1.0 +import service.settings 1.0 Item { id: root @@ -102,7 +103,7 @@ Item { font.family: Style.fontFamily font.pixelSize: 24 color: Style.colorWhite - text: "mph" + text: SettingsService.metric ? "km/h" : "mph" }