summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-08-07 09:58:25 +0200
committerLiang Qi <liang.qi@qt.io>2019-08-07 11:23:14 +0200
commit0a242cc026190432a115a82752ddf35b8be15de6 (patch)
tree50f25faa4b73ceaadc953cce0286a559ab6311db
parent44757c534b950e2fca2d56d0ab4228b4123cf080 (diff)
downloadqtlocation-0a242cc026190432a115a82752ddf35b8be15de6.tar.gz
Fix the build with -no-widgets in examples
Task-number: QTBUG-76780 Change-Id: I543ec1e89c8b9e8ba66524345d230c5e4dd7c08b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--examples/location/location.pro5
-rw-r--r--examples/location/mapviewer/mapviewer.pro2
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/location/location.pro b/examples/location/location.pro
index 6506813f..69fa6516 100644
--- a/examples/location/location.pro
+++ b/examples/location/location.pro
@@ -7,6 +7,7 @@ qtHaveModule(quick) {
mapviewer \
minimal_map \
itemview_transitions \
- planespotter \
- geojson_viewer
+ planespotter
+
+ qtHaveModule(widgets): SUBDIRS += geojson_viewer
}
diff --git a/examples/location/mapviewer/mapviewer.pro b/examples/location/mapviewer/mapviewer.pro
index 8e3daf81..a5cbbecb 100644
--- a/examples/location/mapviewer/mapviewer.pro
+++ b/examples/location/mapviewer/mapviewer.pro
@@ -6,7 +6,7 @@ SOURCES += main.cpp
# Workaround for QTBUG-38735
QT_FOR_CONFIG += location-private
-qtConfig(geoservices_mapboxgl): QT += sql opengl
+qtConfig(geoservices_mapboxgl): QT += sql
qtConfig(geoservices_osm): QT += concurrent
RESOURCES += \