diff options
author | Andreas Holzammer <andreas.holzammer@kdab.com> | 2012-01-23 09:37:04 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 01:11:22 +0100 |
commit | d584292aa2e17dbb7cdfee24b442cd9cb66e5aac (patch) | |
tree | 1ed64b54406e12eb2f7137d583332d1016dc733f /src/gui/opengl/qopenglpaintdevice.h | |
parent | dc39531acc9898121a1d802d3cae6af8e6536460 (diff) |
Make it possible to compile with -no-opengl.
This takes out the dependency to the header files
of OpenGl. The ifdef QT_NO_OPENGL in the opengl headers
are needed, as qmake adds depends in the makefiles
for all GUI headers.
Task-number: QTBUG-23207
Change-Id: If31448ee35fd8c39194c7cb7d62273fbc6def883
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/opengl/qopenglpaintdevice.h')
-rw-r--r-- | src/gui/opengl/qopenglpaintdevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglpaintdevice.h b/src/gui/opengl/qopenglpaintdevice.h index f0566fbab7..7738f6bb2e 100644 --- a/src/gui/opengl/qopenglpaintdevice.h +++ b/src/gui/opengl/qopenglpaintdevice.h @@ -42,6 +42,8 @@ #ifndef QOPENGLPAINTDEVICE_H #define QOPENGLPAINTDEVICE_H +#ifndef QT_NO_OPENGL + // // W A R N I N G // ------------- @@ -100,4 +102,6 @@ QT_END_NAMESPACE QT_END_HEADER +#endif // QT_NO_OPENGL + #endif // QOPENGLPAINTDEVICE_H |