From 0a242cc026190432a115a82752ddf35b8be15de6 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 7 Aug 2019 09:58:25 +0200 Subject: Fix the build with -no-widgets in examples Task-number: QTBUG-76780 Change-Id: I543ec1e89c8b9e8ba66524345d230c5e4dd7c08b Reviewed-by: Alex Blasche --- examples/location/location.pro | 5 +++-- examples/location/mapviewer/mapviewer.pro | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/location') 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 += \ -- cgit v1.2.3