summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/nokia/nokia.qrc
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-05-11 15:41:37 +0300
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-05-20 09:29:20 +0000
commit5767601d95e33b20962d0cd88cc6ce5c8c724a91 (patch)
tree5e82ea58d1117204a4a07cd169394c38fc0af6cc /src/plugins/geoservices/nokia/nokia.qrc
parent5bae353bc2faf0aab222d09b1bf21fc0e0dc37eb (diff)
downloadqtlocation-5767601d95e33b20962d0cd88cc6ce5c8c724a91.tar.gz
Fix resources not loading on static builds
Explicitly call Q_INIT_RESOURCE, otherwise the resources are not found and the plugins using resources are broken when building Qt with -static. This patch also adds a prefix to these resources to avoid collision, since they are very generic like "logo.png" or "maps.json". Task-number: QTBUG-60007 Change-Id: Ifb73e9b97af107f2e24f5478f3de534bbd40e158 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/plugins/geoservices/nokia/nokia.qrc')
-rw-r--r--src/plugins/geoservices/nokia/nokia.qrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/geoservices/nokia/nokia.qrc b/src/plugins/geoservices/nokia/nokia.qrc
new file mode 100644
index 00000000..41d973c5
--- /dev/null
+++ b/src/plugins/geoservices/nokia/nokia.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/nokia">
+ <file>logo.png</file>
+ </qresource>
+</RCC>