diff options
author | Brad Hards <bradh@kde.org> | 2009-05-26 03:38:42 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-28 13:56:51 (GMT) |
commit | 4a44a8b4be1ba827ccaee8bf19903c6adb9c0900 (patch) | |
tree | 77bd0a44d2d81da3521a8c6499cf1e28d194c4a5 /examples | |
parent | 7f353ae912a935b9837cd5a00de295ec64a220af (diff) | |
download | Qt-4a44a8b4be1ba827ccaee8bf19903c6adb9c0900.zip Qt-4a44a8b4be1ba827ccaee8bf19903c6adb9c0900.tar.gz Qt-4a44a8b4be1ba827ccaee8bf19903c6adb9c0900.tar.bz2 |
Fix build when compiling Qt using -no-opengl configuration.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/animation/sub-attaq/mainwindow.cpp | 9 |
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) |