summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make remove city button accessible5.3Frederik Gladhorn2014-07-071-0/+3
| | | | | Change-Id: I6deae59b6b1f2fc40700f766563ec6e81e8fba8f Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Accessibility: Make back arrow a buttonFrederik Gladhorn2014-07-071-1/+8
| | | | | Change-Id: Ibd873e3583256e0bc95462a2b2009f814817c760 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Use true/false instead of 1/0 for boolFrederik Gladhorn2014-07-071-1/+1
| | | | | Change-Id: I0080ab942b21cea5c6c53a338f4d1ec1b88fa408 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Adjust the pages design dynamically for narrow screensCaroline Chao2014-06-259-67/+115
| | | | | Change-Id: I64a46ef883cd4d12848ba66b34a45d0916ac4796 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Fix incorrect row height in LongTermPageCaroline Chao2014-06-231-2/+2
| | | | | | | | Each LongTermDay item and its associated rectangle drawn under it should have the same height. Change-Id: If0b5b5a8ac57516666b1af12be0c6aa6c0881575 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Update the source link for the weather dataCaroline Chao2014-06-231-1/+3
| | | | | | | Instead of opening the xml file, open the relative page. Change-Id: I4fadf6d8f6ad5763d57a6c321d21a2ec9f064d00 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Use renderType Text.QtRendering for text on mobile platformsCaroline Chao2014-06-172-0/+2
| | | | | | Change-Id: I8b2fec7ba5dddb1db0c844ec0904e520c75441c1 Reviewed-by: Andrew Knight <andrew.knight@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
* Use locale's measurement systemCaroline Chao2014-06-153-5/+15
| | | | | | | To choose which precipitation and wind speed units to display. Change-Id: Ie1fe3dd8f325a9fe253f411addfc9ab3174f4a0c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Remove unused CitiesModel left overCaroline Chao2014-05-231-1/+0
| | | | | Change-Id: If34e5d47d082eeac2621aaed764287d4f4b8b443 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Simplify the "isLocked" logic for the pagesCaroline Chao2014-05-235-13/+1
| | | | | | | Use a binding instead. Change-Id: If302c9a5fa7f4b37d1be1fbbbf4771e327d2c26f Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Save on "ApplicationSuspended" state for all platforms.Caroline Chao2014-05-231-1/+1
| | | | | Change-Id: I293d52881d2d88481c13689eb4a8bfa9b332c9a2 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Add manifest directives and icons for WinRTAndrew Knight2014-05-198-0/+20
| | | | | | | | | For store packaging, WinRT/Windows Phone apps must have certain capabilities and icons set in the manifest. Change-Id: I89032090f540c0e834dea0ca6436bea53f4e5bfb Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
* Add privacy policy link for WinRTAndrew Knight2014-05-194-1/+286
| | | | | | | | | | For apps which use the network, the Windows Store requires that a privacy policy link appear in the Settings Charm. As there is no Qt API for this, add some platform-specific code to provide the policy link. Change-Id: Iac7715ace86cf8b414d102eb724678d0ffaf2452 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com> Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
* Fix image provider URL loadingAndrew Knight2014-05-161-1/+1
| | | | | | | | | | The local file URL is passed in with the file scheme removed. This means that URL encodings to the local path may end up in the file name, which may not load on some platforms. So, reparse this as a file URL and convert it to a local file name string. Change-Id: Iac32e7adde717e9ab2dce77d9237cd1cfc526fe6 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Make the height of the row delegate an application constantCaroline Chao2014-05-153-4/+7
| | | | | | | Since it is used at different places. Change-Id: I9cecc118871d948f0cabd80d35cb07a12ccd1b88 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Refactor the zoom pageCaroline Chao2014-05-153-59/+72
| | | | | | | | Make the design more flexible to sliderHandleWidth, sliderHandleHeight and sliderGapWidth changes. Change-Id: Idd5dd07c1951fe70320f8434e0cfe8f211518277 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Review the temperature label preferredWidth calculation in zoom itemCaroline Chao2014-05-122-16/+11
| | | | | | | | 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>
* Show time range in zoomed itemCaroline Chao2014-05-091-6/+10
| | | | | | | | So it is more obvious to see which part of the day the zoomed item refers too. Change-Id: Ie0471acf466b0fc8f4e48982fe092c166a47a2f6 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Don't use QtQml module includeAndrew Knight2014-04-281-1/+2
| | | | | | | | Including the whole module will include the headers for the entire module and its dependencies, which is bad practice. Change-Id: I2ba2505d09500bc496dc83fa26cfea6637f6d795 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Fix in zoom item - displayed values need to change at the same timeCaroline Chao2014-04-251-6/+8
| | | | | | | | | When using the slider, the temperature and other forecast info should match the forecast icon. Using the rounded value of the slider current value to retrieve each weather data to display. Change-Id: I61b898ba947572409d5bae0be0006c1251fa1e3a Reviewed-by: Andrew Knight <andrew.knight@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>
* Add import uri for custom QML typesLeena Miettinen2014-03-241-0/+1
| | | | | | | So the import org.qtproject.demo.weather gets recognized when loaded in Qt Creator Change-Id: I7b1660b9040a1c04b585079d4fb12e9c438b9482 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Small fixes / cleanupCaroline Chao2014-03-243-25/+6
| | | | | | | | - Remove useless JS function - Use CONSTANT for constant properties Change-Id: Ie921852250f3f7df718d998e7b3d160dc7db6a15 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Bump version code for Android 1.3v1.3_androidCaroline Chao2014-03-191-1/+1
| | | | | Change-Id: I55b323499b023a39aa84112f35ce5b39b07d548b Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Review LongTermPage to improve performance on mobile devicesCaroline Chao2014-03-194-21/+37
| | | | | | | | | | | | | | | | | | | | The Separator has its implicitWidth and implicitHeight changing when the screen rotates. This causes the layout to be redrawn. Its implicitWidth is only used as margin, thus rewriting the LongTermPage to use left/right margins instead of left/right Separator as part of the layout. The ApplicationInfo.isMobile property was not defined, which caused an additional and unnecessary binding on page width/height changes. When the screen rotates the width and height change, thus the physicalSizeChanged signal is emitted twice. Use primaryOrientationChanged instead now. Those changes improve the performance when redrawing the screen while rotating a device. Change-Id: I09d3b370d45e7bb62ba20dd1fc7182747c468225 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Bump version to 1.3v1.3_iOSCaroline Chao2014-03-192-6/+6
| | | | | | | For iOS and Android Change-Id: Idac36a64e2fcb64422fea18c84fd2dd64e3c9692 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Translation: Add Simplified ChineseLiang Qi2014-03-142-1/+122
| | | | | | | | | Since Traditional Chinese is not available, adding Simplified Chinese as default language for one or the other detected (zh). Change-Id: I0262ee8054450babbc90b4eaeed0b4c6364fddb5 Reviewed-by: Jing Bai <doris.bai@gmail.com>
* Translations: Add Bengali and HindiCaroline Chao2014-03-143-1/+243
| | | | | | | Change-Id: I8b0bbf7bb0510b2430b2ef0f1d52d59dfdf74ea9 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Indrajit Tapadar <indrajit.tapadar@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Update zoomed item temperature preferredWidthCaroline Chao2014-03-142-2/+3
| | | | | | | | 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>
* Refactor long term page.Caroline Chao2014-03-142-113/+118
| | | | | | | | | | | The previous design makes it to cumbersome to adjust properly to strings in different languages. Now the GridLayout will take care of the column widths according to the content. Change-Id: I702c708ea58731c5a0e213f70507e7b49b621743 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Translation: Add RussianCaroline Chao2014-03-112-1/+122
| | | | | | | Change-Id: If3db15f6a74a8e1e01eab9a4c6a4751aace62e63 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Translation: Add PolishCaroline Chao2014-03-102-1/+122
| | | | | Change-Id: Ifdf938ba8d35788e628fe7988707e9e76a49c82f Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* Translation: Add DanishLeena Miettinen2014-03-072-1/+122
| | | | | Change-Id: Ie10794152593883d644be74734cbe1886674820f Reviewed-by: Michael Bruning <michael.bruning@digia.com>
* Review expected width for short day and date fieldsCaroline Chao2014-03-072-2/+21
| | | | | | | | 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>
* Translation: Add HungarianCaroline Chao2014-03-072-1/+122
| | | | | Change-Id: I442d42a06b0cc37e394fb97eb8dc780fce11e44b Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Translation: add Norwegian BokmålNico Vertriest2014-03-072-1/+133
| | | | | Change-Id: I4cc4bc2905071131212de539bacdf193b47a60de Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Translation: Add DutchNico Vertriest2014-03-072-1/+126
| | | | | Change-Id: I67d3d97368acf1fdb5eb874c7bf672cacb3be50f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Translation: Add RomanianCaroline Chao2014-03-072-1/+122
| | | | | Change-Id: I3c5785c61c391a8e5b30580317b987f1bd7e952f Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Translation: Add FrenchCaroline Chao2014-03-072-1/+122
| | | | | Change-Id: I7a5d26bb3bf80a845f49dcc5f86228f0a38e3ca6 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Translation: Add ItalianCaroline Chao2014-03-062-1/+122
| | | | | Change-Id: I98f2e33b2373eb050eba409e9f8df812f6c882f4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Translation: Add FinishLeena Miettinen2014-03-052-1/+133
| | | | | Change-Id: Idb1d52686c996c2f3ebb826a3aaeff74e76cfc92 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Translation: Add SpanishSergio Ahumada2014-03-052-1/+122
| | | | | | Change-Id: Ibdec03e795ccaf747c1b67ca915f62daae94a23c Reviewed-by: Sergio Ahumada <sahumada@blackberry.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Use the locale format to display the short version of the day nameCaroline Chao2014-03-052-3/+6
| | | | | | | | 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>
* Translation: Add GermanLeena Miettinen2014-03-052-1/+133
| | | | | Change-Id: I71253cd6ca70a8216a577e8de5bc5ebc3ac3e58b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Add Localizations to the weather appCaroline Chao2014-03-044-1/+116
| | | | | | | | | | | | | Use application's locale to load the relevant translation if available. Automate the run of lrelease to generate the translation files *.qm for each language available. Embed the *qm files in the application. Add ts-<lang> and commit-ts targets for convenience while dealing with translations files. Change-Id: I9ff96fb8468a04f4657e425c2c9c730cbcc4481f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Update date time handlingCaroline Chao2014-02-275-43/+41
| | | | | | | | 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 OneDaySliderItemCaroline Chao2014-02-271-12/+13
| | | | | | | | | So resizing only the slider gap width resizes all the items inside the canvas accordingly. Change-Id: I072569875ae756d6c67440526cf26c2392877bf5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Fix typoCaroline Chao2014-02-251-1/+1
| | | | | Change-Id: I3d2fe06ba84adf7aeada5b8a7ff0825756c488a7 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Bump version for iOSv1.2_iOSCaroline Chao2014-02-241-2/+2
| | | | | Change-Id: Id11e3f153648fb369aa82bca8b4c7437acc1a79c Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Update translation flags (qsTr)Caroline Chao2014-02-214-4/+4
| | | | | | | Use same temperature formating everywhere. Change-Id: I80b7004a5011634bee4d11a47116f24ccb317723 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>