summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2020-01-14 09:28:27 +0100
committerJohan Klokkhammer Helsing <johan.helsing@qt.io>2020-01-14 11:31:29 +0100
commit96dea48c154e5971593582f92917db3b3f17c7fa (patch)
treeb4cba1721f09e46c5d9f5b492357bc0e5d52f7e8 /src/opengl
parent123cf74dd00307478ac72ec4fd34d9198a603379 (diff)
Make the opengl module optionally depend on widgets
Previously, it was a hard dependency, so the opengl module wouldn't get built when configured with -no-feature-widgets even though the widget dependency is only needed for QOpenGLWidget. Task-number: QTBUG-74409 Change-Id: Icc6e7599d0c9c31e9448456eef1e5ecc4605234a Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qopenglwidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qopenglwidget.h b/src/opengl/qopenglwidget.h
index b331880b5d..b266dc359d 100644
--- a/src/opengl/qopenglwidget.h
+++ b/src/opengl/qopenglwidget.h
@@ -42,7 +42,7 @@
#include <QtOpenGL/qtopenglglobal.h>
-#ifndef QT_NO_OPENGL
+#ifdef QT_WIDGETS_LIB
#include <QtWidgets/QWidget>
#include <QtGui/QSurfaceFormat>
@@ -110,6 +110,6 @@ private:
QT_END_NAMESPACE
-#endif // QT_NO_OPENGL
+#endif // QT_WIDGETS_LIB
#endif // QOPENGLWIDGET_H