diff options
author | Lukáš Tinkl <ltinkl@luxoft.com> | 2017-08-01 14:03:11 +0100 |
---|---|---|
committer | Lukáš Tinkl <ltinkl@luxoft.com> | 2017-08-02 11:16:54 +0000 |
commit | 0812a467a0eaf33d9e334cb091259f843cdff6da (patch) | |
tree | 4c2d277a69017ff55ec8198c775ad7b45c81b7fe | |
parent | c5a173161b934abcdb680930575a16cf4a86a20a (diff) | |
download | neptune-ui-0812a467a0eaf33d9e334cb091259f843cdff6da.tar.gz |
Respect the locale defined decimal point for temperature display
Change-Id: Ib6e390572d2dd3b0c9efa7ebc1c79a26bd08e065
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
-rw-r--r-- | sysui/climate/TemperatureLevel.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysui/climate/TemperatureLevel.qml b/sysui/climate/TemperatureLevel.qml index 1b9511d..8083a6c 100644 --- a/sysui/climate/TemperatureLevel.qml +++ b/sysui/climate/TemperatureLevel.qml @@ -55,8 +55,8 @@ Control { Item { id: content - property var values: value.toFixed(1).toString().split(".") - property bool showDecimal: values[1] !== '0' + readonly property var values: value.toFixed(1).toString().split(".") + readonly property bool showDecimal: values[1] !== '0' anchors.left: horizontalAlignment === Qt.AlignLeft ? parent.left : undefined anchors.right: horizontalAlignment === Qt.AlignRight ? parent.right : undefined @@ -88,7 +88,7 @@ Control { anchors.baseline: integerPart.baseline height: Style.vspan(1) - text: "." + content.values[1] + text: Qt.locale().decimalPoint + content.values[1] visible: content.showDecimal color: Style.colorWhite |