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>
| commit | 5767601d95e33b20962d0cd88cc6ce5c8c724a91 |
| parent | 5bae353bc2faf0aab222d09b1bf21fc0e0dc37eb |
| author | Thiago Marcos P. Santos <tmpsantos@gmail.com> |
| committer | Paolo Angelelli <paolo.angelelli@qt.io> |
| commit time | Sat, 20 May 2017 09:29:20 +0000 |
- M src/plugins/geoservices/esri/esri.qrc
- M src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp
- M src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.cpp
- M src/plugins/geoservices/mapboxgl/qgeoserviceproviderpluginmapboxgl.h
- M src/plugins/geoservices/nokia/nokia.pro
- R100 src/plugins/geoservices/nokia/resource.qrc
- M src/plugins/geoservices/nokia/qgeoserviceproviderplugin_nokia.cpp
- M src/plugins/geoservices/nokia/qgeoserviceproviderplugin_nokia.h