summaryrefslogtreecommitdiff
path: root/examples/positioning/weatherinfo/weatherinfo.qrc
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2021-08-17 16:34:59 +0200
committerIvan Solovev <ivan.solovev@qt.io>2021-08-24 09:44:12 +0200
commit6458b9b60a016bbe0ad6574a1965c49dcd9383f3 (patch)
tree682150248c93291a22a4577754024972f49ddc69 /examples/positioning/weatherinfo/weatherinfo.qrc
parent0d908c344c80cfcadb5ea1bb964bd4d8332d8803 (diff)
downloadqtlocation-6458b9b60a016bbe0ad6574a1965c49dcd9383f3.tar.gz
Introduce WeatherApi backend
This patch introduces the weather backend from weatherapi.com and provides the means to switch between backends at runtime. This will be done automatically in case one of the backends does not respond. As we currently use different backends, we had to update the QML part that is responsible for showing the icons. We no longer use the icons from web-site for the forecast, but use the same icon set as for the current weather. This required introducing methods to convert backend-specific weather icon information to a common format used in the application. While on it, a new type of weather icon was introduced (taken from the same icon set). Different weather backends provide weather forecast for different amount of days (due to license restrictions), so the QML code now makes use of the Repeater that dynamically changes the amount of shown days. Task-number: QTBUG-60467 Pick-to: 6.2 Change-Id: Ic9aa3a97ec440dddb38f06edfff8a8434724d118 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/positioning/weatherinfo/weatherinfo.qrc')
-rw-r--r--examples/positioning/weatherinfo/weatherinfo.qrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/positioning/weatherinfo/weatherinfo.qrc b/examples/positioning/weatherinfo/weatherinfo.qrc
index 7b79dbea..1578fa9d 100644
--- a/examples/positioning/weatherinfo/weatherinfo.qrc
+++ b/examples/positioning/weatherinfo/weatherinfo.qrc
@@ -16,5 +16,6 @@
<file>icons/weather-sunny-very-few-clouds.png</file>
<file>icons/weather-sunny.png</file>
<file>icons/weather-thundershower.png</file>
+ <file>icons/weather-showers-scattered.png</file>
</qresource>
</RCC>