aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/quicktest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest/quicktest.h')
-rw-r--r--src/qmltest/quicktest.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmltest/quicktest.h b/src/qmltest/quicktest.h
index 1f8fe210e7..a83d176cfa 100644
--- a/src/qmltest/quicktest.h
+++ b/src/qmltest/quicktest.h
@@ -45,7 +45,7 @@
#include <QtQuickTest/quicktestglobal.h>
#include <QtWidgets/qwidget.h>
#ifdef QT_OPENGL_LIB
-#include <QtOpenGL/qgl.h>
+#include <QtGui/qopengl.h>
#endif
QT_BEGIN_NAMESPACE
@@ -65,7 +65,7 @@ Q_QUICK_TEST_EXPORT int quick_test_main(int argc, char **argv, const char *name,
#define QUICK_TEST_OPENGL_MAIN(name) \
static QWidget *name##_create_viewport() \
{ \
- return new QGLWidget(); \
+ return new QOpenGLWidget(); \
} \
int main(int argc, char **argv) \
{ \
@@ -83,7 +83,7 @@ Q_QUICK_TEST_EXPORT int quick_test_main(int argc, char **argv, const char *name,
#define QUICK_TEST_OPENGL_MAIN(name) \
static QWidget *name##_create_viewport() \
{ \
- return new QGLWidget(); \
+ return new QOpenGLWidget(); \
} \
int main(int argc, char **argv) \
{ \