examples: fix compile without gui module

With disabled gui module qmake in the directory examples/gui and
examples/widgets failes with:

  Project ERROR: Could not find feature opengl.

Fix this by protecting 'qtConfig(opengl)' by 'qtHaveModule(gui)' as
already done in examples/examples.pro.

Task-number: QTBUG-60488
Change-Id: Ia842124e818e8c81d41d2b8e3b8905bf1dee58ce
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Peter Seiderer 2017-04-27 22:41:28 +02:00
parent 05f22d6eb2
commit 18d49808db
2 changed files with 2 additions and 2 deletions

View File

@ -6,5 +6,5 @@ CONFIG += no_docs_target
SUBDIRS += analogclock
SUBDIRS += rasterwindow
qtConfig(opengl): \
qtHaveModule(gui):qtConfig(opengl): \
SUBDIRS += openglwindow

View File

@ -22,7 +22,7 @@ SUBDIRS = \
tutorials \
widgets
qtConfig(opengl): \
qtHaveModule(gui):qtConfig(opengl): \
SUBDIRS += windowcontainer
contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows