diff options
author | Peter Seiderer <ps.report@gmx.net> | 2017-04-27 22:41:28 +0200 |
---|---|---|
committer | Peter Seiderer <ps.report@gmx.net> | 2017-05-05 06:54:15 +0000 |
commit | 18d49808db46add078d9d4bcffaac5361d5c7269 (patch) | |
tree | ef052a59b3ee8b769dbe6ea5e25deb71c555aa78 /examples/widgets/widgets.pro | |
parent | 05f22d6eb287e732205fd0869a68a747781b6a35 (diff) |
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>
Diffstat (limited to 'examples/widgets/widgets.pro')
-rw-r--r-- | examples/widgets/widgets.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/widgets.pro b/examples/widgets/widgets.pro index 513ddc91f2..cef4936d32 100644 --- a/examples/widgets/widgets.pro +++ b/examples/widgets/widgets.pro @@ -22,7 +22,7 @@ SUBDIRS = \ tutorials \ widgets -qtConfig(opengl): \ +qtHaveModule(gui):qtConfig(opengl): \ SUBDIRS += windowcontainer contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows |