examples: compile w/o opengl
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 23 Feb 2012 06:26:29 +0000 (07:26 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 24 Feb 2012 21:39:40 +0000 (22:39 +0100)
Fixes remnants of an automated QtGui -> QtWidgets port.

Change-Id: I31f63bdd6ae71aee8e70b20e24def30e0eafb725
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
examples/animation/sub-attaq/mainwindow.cpp
examples/animation/sub-attaq/sub-attaq.pro
examples/graphicsview/padnavigator/padnavigator.pro
examples/painting/affine/affine.pro
examples/painting/composition/composition.pro
examples/painting/deform/deform.pro
examples/painting/gradients/gradients.pro
examples/painting/pathstroke/pathstroke.pro

index fd41cee..70f0303 100644 (file)
 
 //Qt
 #include <QGraphicsView>
+#include <QApplication>
+#include <QMenu>
+#include <QMenuBar>
+#include <QLayout>
 
-#ifdef QT_NO_OPENGL
-    #include <QtGui/QMenuBar>
-    #include <QtGui/QLayout>
-    #include <QtGui/QApplication>
-#else
-    #include <QtOpenGL/QtOpenGL>
+#ifndef QT_NO_OPENGL
+# include <QtOpenGL/QtOpenGL>
 #endif
 
 MainWindow::MainWindow() : QMainWindow(0)
index e994694..6d9b319 100644 (file)
@@ -1,4 +1,5 @@
-contains(QT_CONFIG, opengl):QT += opengl widgets
+QT += widgets
+contains(QT_CONFIG, opengl):QT += opengl
 HEADERS += boat.h \
     bomb.h \
     mainwindow.h \
index 2c1d043..4b9733b 100644 (file)
@@ -16,7 +16,8 @@ RESOURCES += \
 FORMS += \
     form.ui
 
-contains(QT_CONFIG, opengl):QT += opengl widgets
+QT += widgets
+contains(QT_CONFIG, opengl):QT += opengl
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/graphicsview/padnavigator
index 80f966e..0977ea1 100644 (file)
@@ -3,8 +3,9 @@ HEADERS += xform.h
 
 contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
        DEFINES += QT_OPENGL_SUPPORT
-       QT += opengl widgets
+       QT += opengl
 }
+QT += widgets
 
 SHARED_FOLDER = ../shared
 
index 8641109..eb63d0c 100644 (file)
@@ -8,8 +8,9 @@ include($$SHARED_FOLDER/shared.pri)
 RESOURCES += composition.qrc
 contains(QT_CONFIG, opengl) {
        DEFINES += QT_OPENGL_SUPPORT
-       QT += opengl widgets
+       QT += opengl
 }
+QT += widgets
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/composition
index bd70450..527133e 100644 (file)
@@ -9,8 +9,9 @@ RESOURCES += deform.qrc
 
 contains(QT_CONFIG, opengl) {
        DEFINES += QT_OPENGL_SUPPORT
-       QT += opengl widgets
+       QT += opengl
 }
+QT += widgets
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/deform
index 4d3efe1..4362d28 100644 (file)
@@ -8,8 +8,9 @@ include($$SHARED_FOLDER/shared.pri)
 RESOURCES += gradients.qrc
 contains(QT_CONFIG, opengl) {
        DEFINES += QT_OPENGL_SUPPORT
-       QT += opengl widgets
+       QT += opengl
 }
+QT += widgets
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/gradients
index 60a5cd7..916866d 100644 (file)
@@ -9,8 +9,9 @@ RESOURCES += pathstroke.qrc
 
 contains(QT_CONFIG, opengl) {
        DEFINES += QT_OPENGL_SUPPORT
-       QT += opengl widgets
+       QT += opengl
 }
+QT += widgets
 
 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/painting/pathstroke