summaryrefslogtreecommitdiffstats
path: root/qml/js
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-03-14 10:04:30 +0100
committerCaroline Chao <caroline.chao@digia.com>2014-03-14 10:50:17 +0100
commitcedf3bd41dd912267d9fc8b4a23b38ee530e4f4e (patch)
treedcab4df1bf1a0d2ed754048d641ae9ac315715ef /qml/js
parent9ec069c5d4bfd8a3d4cca77d5a6e168f534cfed0 (diff)
Update zoomed item temperature preferredWidth
Now we are using other languages than English, we need to get the translated string of the temperature unit to calculate the expected size. Change-Id: I262d1f5aec4ed5bf316ebf75301073bac5934b67 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'qml/js')
-rw-r--r--qml/js/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/js/utils.js b/qml/js/utils.js
index 1326b89..69ab20c 100644
--- a/qml/js/utils.js
+++ b/qml/js/utils.js
@@ -126,7 +126,7 @@ function getMaxTempLenght(cityModel) {
var stringTemp = "555" // temperatures estimated between -55 and +55
if (maxLength === 3)
stringTemp = "-" + stringTemp
- return stringTemp.substring(0, maxLength) + "°C."
+ return stringTemp.substring(0, maxLength)
}
// WeatherModel utils