summaryrefslogtreecommitdiffstats
path: root/qml/js
Commit message (Collapse)AuthorAgeFilesLines
* Add the wind direction for accessibilityFrederik Gladhorn2014-10-231-1/+6
| | | | | | Change-Id: I6de63d01c21aabd8e00c750c987300ecf610a758 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Un-abbreviate m/s, mph, mm and in for accessibilityJan Arve Saether2014-10-171-0/+13
| | | | | | | | There is currently only one translation (german) Change-Id: I76abb04d842b91726d3052a94d8b81dbac1b10e8 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Use locale's measurement systemCaroline Chao2014-06-151-2/+9
| | | | | | | To choose which precipitation and wind speed units to display. Change-Id: Ie1fe3dd8f325a9fe253f411addfc9ab3174f4a0c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Review the temperature label preferredWidth calculation in zoom itemCaroline Chao2014-05-121-14/+0
| | | | | | | | It is now more generic and can adapt to different localizations and temperature units if needed. Change-Id: I8b756cd117e5be8bfbf3cc538c62542a5c9e371c Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* Fix timezone errorCaroline Chao2014-04-231-5/+15
| | | | | | | | | | | | Javacript Date() is using UTC time. However the time given by yr.no is in the city local timezone and should be used as it. Now retrieve the offset between the UTC time and the device local time to correct the time accordingly. Change-Id: Ib95bba390a890cbef57c55c950440e253ba6f380 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Small fixes / cleanupCaroline Chao2014-03-241-20/+0
| | | | | | | | - Remove useless JS function - Use CONSTANT for constant properties Change-Id: Ie921852250f3f7df718d998e7b3d160dc7db6a15 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Update zoomed item temperature preferredWidthCaroline Chao2014-03-141-1/+1
| | | | | | | | 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>
* Review expected width for short day and date fieldsCaroline Chao2014-03-071-0/+19
| | | | | | | | Now we are using different languages, we need to calculate the expected lenghts depending on the locale in use. Change-Id: I6204bc9cdd3564841f7e344b87a93be29d225572 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* Use the locale format to display the short version of the day nameCaroline Chao2014-03-051-2/+4
| | | | | | | | Not all languages use the three first letters of the day name for the short version (i.e. Finnish) Change-Id: I50176e0e27ea93d8b78fbf4298e4ee74d0764c2c Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Update date time handlingCaroline Chao2014-02-271-24/+20
| | | | | | | | Limit strings manipulation by using Date instead. Use system locale to retrieve date and time formats to display. Change-Id: Ib9b3be727546a031bcb9c8f231fa77091bdc7587 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Update translation flags (qsTr)Caroline Chao2014-02-211-1/+1
| | | | | | | Use same temperature formating everywhere. Change-Id: I80b7004a5011634bee4d11a47116f24ccb317723 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Fix license headersCaroline Chao2013-12-131-27/+26
| | | | | | | Change-Id: I68dc519a7177810dcc39e9c648cf823904a949ef Reviewed-by: Hanne Linaae <hanne.linaae@digia.com> Reviewed-by: Sami Makkonen <sami.makkonen@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Initial commitv1.1Caroline Chao2013-12-101-0/+277