1 From fe8a9bacf781fcf290e04a08f2b8e37d881d58bb Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Thu, 27 Apr 2017 22:41:28 +0200
4 Subject: [PATCH] examples: fix compile without gui module
8 Project ERROR: Could not find feature opengl.
10 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
12 examples/gui/gui.pro | 2 +-
13 examples/widgets/widgets.pro | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/examples/gui/gui.pro b/examples/gui/gui.pro
17 index a4d960d3f5..b8080c2075 100644
18 --- a/examples/gui/gui.pro
19 +++ b/examples/gui/gui.pro
20 @@ -6,5 +6,5 @@ CONFIG += no_docs_target
22 SUBDIRS += analogclock
23 SUBDIRS += rasterwindow
25 +qtHaveModule(gui):qtConfig(opengl): \
26 SUBDIRS += openglwindow
27 diff --git a/examples/widgets/widgets.pro b/examples/widgets/widgets.pro
28 index 513ddc91f2..cef4936d32 100644
29 --- a/examples/widgets/widgets.pro
30 +++ b/examples/widgets/widgets.pro
31 @@ -22,7 +22,7 @@ SUBDIRS = \
36 +qtHaveModule(gui):qtConfig(opengl): \
37 SUBDIRS += windowcontainer
39 contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows