diff options
-rw-r--r-- | examples/webenginewidgets/maps/maps.pro | 5 | ||||
-rw-r--r-- | examples/webenginewidgets/spellchecker/spellchecker.pro | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/examples/webenginewidgets/maps/maps.pro b/examples/webenginewidgets/maps/maps.pro index 3fee49077..b1cb3b28b 100644 --- a/examples/webenginewidgets/maps/maps.pro +++ b/examples/webenginewidgets/maps/maps.pro @@ -10,3 +10,8 @@ SOURCES += main.cpp \ target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/maps INSTALLS += target + +!qtConfig(webengine-geolocation) { + error('Qt WebEngine compiled without geolocaton support, this example will not work.') +} + diff --git a/examples/webenginewidgets/spellchecker/spellchecker.pro b/examples/webenginewidgets/spellchecker/spellchecker.pro index e1f6c6341..682f118fe 100644 --- a/examples/webenginewidgets/spellchecker/spellchecker.pro +++ b/examples/webenginewidgets/spellchecker/spellchecker.pro @@ -6,6 +6,10 @@ TARGET = spellchecker QT += webenginewidgets CONFIG += c++11 +!qtConfig(webengine-spellchecker) { + error("Qt WebEngine compiled without spellchecker support, this example will not work.") +} + qtConfig(webengine-native-spellchecker) { error("Spellcheck example can not be built when using native OS dictionaries.") } |