summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Tinkl <ltinkl@luxoft.com>2017-08-01 14:03:11 +0100
committerLukáš Tinkl <ltinkl@luxoft.com>2017-08-02 11:16:54 +0000
commit0812a467a0eaf33d9e334cb091259f843cdff6da (patch)
tree4c2d277a69017ff55ec8198c775ad7b45c81b7fe
parentc5a173161b934abcdb680930575a16cf4a86a20a (diff)
downloadneptune-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.qml6
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