summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused CitiesModel left overCaroline Chao2014-05-231-1/+0
| | | | | Change-Id: If34e5d47d082eeac2621aaed764287d4f4b8b443 Reviewed-by: J-P Nurmi <jpnurmi@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-151-0/+2
| | | | | | | Since it is used at different places. Change-Id: I9cecc118871d948f0cabd80d35cb07a12ccd1b88 Reviewed-by: Andrew Knight <andrew.knight@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>
* 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-242-5/+6
| | | | | | | | - Remove useless JS function - Use CONSTANT for constant properties Change-Id: Ie921852250f3f7df718d998e7b3d160dc7db6a15 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Review LongTermPage to improve performance on mobile devicesCaroline Chao2014-03-192-6/+15
| | | | | | | | | | | | | | | | | | | | 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>
* Add Localizations to the weather appCaroline Chao2014-03-041-0/+4
| | | | | | | | | | | | | 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-272-19/+19
| | | | | | | | 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>
* Silently ignores failures while downloading imagesv1.2_androidCaroline Chao2014-02-062-5/+15
| | | | | | | | | | | | | | It seems some large icons (b200) are missing from yr.no symbols. Thus trying to download them fails and causes the app to be unusable for the cities using them. Now the app will silenttly ignore the images download failures and will use a smaller icon instead (b100) if available. The Image using the large icons is made smaller. Change-Id: Iaefe5f7ef85fe0d985d26873083045e44f944a17 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Fix license headersCaroline Chao2013-12-1313-352/+338
| | | | | | | 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-1014-0/+1803