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:
Samuel Rødal 2013-02-19 13:22:53 +01:00 committed by The Qt Project
parent e47c2744e6
commit c85f6d9f5a
3 changed files with 7 additions and 1 deletions

View File

@ -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
}

View File

@ -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>

View File

@ -44,6 +44,8 @@
#ifndef QT_NO_OPENGL #ifndef QT_NO_OPENGL
#include <QtOpenGL> #include <QtOpenGL>
#else
#include <QtWidgets>
#endif #endif
//! [0] //! [0]