Fixed qtbase examples build when configured with -no-opengl
Change-Id: Idafdc3264f760d6400ce04bb9da36289b1f96438 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
parent
e47c2744e6
commit
c85f6d9f5a
@ -3,4 +3,6 @@ CONFIG += no_docs_target
|
|||||||
|
|
||||||
SUBDIRS += analogclock
|
SUBDIRS += analogclock
|
||||||
SUBDIRS += rasterwindow
|
SUBDIRS += rasterwindow
|
||||||
SUBDIRS += openglwindow
|
contains(QT_CONFIG, opengl(es1|es2)?) {
|
||||||
|
SUBDIRS += openglwindow
|
||||||
|
}
|
||||||
|
@ -47,6 +47,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifndef QT_NO_OPENGL
|
#ifndef QT_NO_OPENGL
|
||||||
#include <QtOpenGL>
|
#include <QtOpenGL>
|
||||||
|
#else
|
||||||
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
#include <qmath.h>
|
#include <qmath.h>
|
||||||
|
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
|
|
||||||
#ifndef QT_NO_OPENGL
|
#ifndef QT_NO_OPENGL
|
||||||
#include <QtOpenGL>
|
#include <QtOpenGL>
|
||||||
|
#else
|
||||||
|
#include <QtWidgets>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
|
Loading…
Reference in New Issue
Block a user