Fix compile with QT_NO_OPENGL.

Change-Id: Icade54a6e3b43fdc9c151efbc25adcef6b7e41d6
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
This commit is contained in:
Andreas Holzammer 2012-02-08 14:54:54 +01:00 committed by Qt by Nokia
parent 0c97840708
commit 88f15faa4a
3 changed files with 9 additions and 0 deletions

View File

@ -42,6 +42,8 @@
#ifndef QGUIGLCONTEXT_P_H
#define QGUIGLCONTEXT_P_H
#ifndef QT_NO_OPENGL
#include "qopengl.h"
#include "qopenglcontext.h"
#include <private/qobject_p.h>
@ -245,4 +247,5 @@ QT_END_NAMESPACE
QT_END_HEADER
#endif // QT_NO_OPENGL
#endif // QGUIGLCONTEXT_P_H

View File

@ -42,6 +42,8 @@
#ifndef QPLATFORMGLCONTEXT_H
#define QPLATFORMGLCONTEXT_H
#ifndef QT_NO_OPENGL
#include <QtCore/qnamespace.h>
#include <QtGui/qsurfaceformat.h>
#include <QtGui/qwindow.h>
@ -91,5 +93,6 @@ QT_END_NAMESPACE
QT_END_HEADER
#endif // QT_NO_OPENGL
#endif // QPLATFORMGLCONTEXT_H

View File

@ -42,6 +42,8 @@
#ifndef QGL_H
#define QGL_H
#ifndef QT_NO_OPENGL
#include <QtWidgets/qwidget.h>
#include <QtGui/qpaintengine.h>
#include <QtOpenGL/qglcolormap.h>
@ -551,4 +553,5 @@ QT_END_NAMESPACE
QT_END_HEADER
#endif // QT_NO_OPENGL
#endif // QGL_H