examples: compile w/o opengl
Fixes remnants of an automated QtGui -> QtWidgets port. Change-Id: I31f63bdd6ae71aee8e70b20e24def30e0eafb725 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
parent
71fe29711f
commit
88016d30a0
@ -45,13 +45,13 @@
|
||||
|
||||
//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)
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user