summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorBrad Hards <bradh@kde.org>2009-05-26 03:38:42 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-05-28 13:56:51 (GMT)
commit4a44a8b4be1ba827ccaee8bf19903c6adb9c0900 (patch)
tree77bd0a44d2d81da3521a8c6499cf1e28d194c4a5 /examples/animation
parent7f353ae912a935b9837cd5a00de295ec64a220af (diff)
downloadQt-4a44a8b4be1ba827ccaee8bf19903c6adb9c0900.zip
Qt-4a44a8b4be1ba827ccaee8bf19903c6adb9c0900.tar.gz
Qt-4a44a8b4be1ba827ccaee8bf19903c6adb9c0900.tar.bz2
Fix build when compiling Qt using -no-opengl configuration.
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/sub-attaq/mainwindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/animation/sub-attaq/mainwindow.cpp b/examples/animation/sub-attaq/mainwindow.cpp
index 9cf9eb5..5e8e259 100644
--- a/examples/animation/sub-attaq/mainwindow.cpp
+++ b/examples/animation/sub-attaq/mainwindow.cpp
@@ -44,9 +44,12 @@
#include "graphicsscene.h"
//Qt
-#include <QtGui/QtGui>
-#ifndef QT_NO_OPENGL
-#include <QtOpenGL/QtOpenGL>
+#ifdef QT_NO_OPENGL
+ #include <QtGui/QMenuBar>
+ #include <QtGui/QLayout>
+ #include <QtGui/QApplication>
+#else
+ #include <QtOpenGL/QtOpenGL>
#endif
MainWindow::MainWindow() : QMainWindow(0)