fix compilation for demos/

This commit is contained in:
Lars Knoll 2011-05-08 09:13:40 +02:00
parent 6773a7f870
commit 16f7919629
78 changed files with 86 additions and 73 deletions

View File

@ -3,7 +3,7 @@ HEADERS += xform.h
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
QT += opengl widgets
}
SHARED_FOLDER = ../shared

View File

@ -41,7 +41,7 @@
#include "bookdelegate.h"
#include <QtGui>
#include <QtWidgets>
BookDelegate::BookDelegate(QObject *parent)
: QSqlRelationalDelegate(parent), star(QPixmap(":images/star.png"))

View File

@ -6,7 +6,7 @@ RESOURCES = books.qrc
SOURCES = bookdelegate.cpp main.cpp bookwindow.cpp
FORMS = bookwindow.ui
QT += sql
QT += sql widgets widgets
target.path = $$[QT_INSTALL_DEMOS]/qtbase/books
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro images

View File

@ -42,7 +42,7 @@
#ifndef BOOKWINDOW_H
#define BOOKWINDOW_H
#include <QtGui>
#include <QtWidgets>
#include <QtSql>
#include "ui_bookwindow.h"

View File

@ -41,7 +41,7 @@
#include "bookwindow.h"
#include <QtGui>
#include <QtWidgets>
int main(int argc, char * argv[])
{

View File

@ -27,7 +27,7 @@ SOURCES += 3rdparty/fbm.c \
RESOURCES += boxes.qrc
QT += opengl
QT += opengl widgets
# install
target.path = $$[QT_INSTALL_DEMOS]/qtbase/boxes

View File

@ -45,7 +45,7 @@
//#include <GL/glew.h>
#include "glextensions.h"
#include <QtGui>
#include <QtWidgets>
#include <QtOpenGL>
#define BUFFER_OFFSET(i) ((char*)0 + (i))

View File

@ -45,7 +45,7 @@
//#include <GL/glew.h>
#include "glextensions.h"
#include <QtGui>
#include <QtWidgets>
#include <QtOpenGL>
#include "glbuffers.h"

View File

@ -44,7 +44,7 @@
#include "scene.h"
#include <QtGui>
#include <QtWidgets>
#include <QGLWidget>
class GraphicsView : public QGraphicsView

View File

@ -42,7 +42,7 @@
#ifndef QTBOX_H
#define QTBOX_H
#include <QtGui>
#include <QtWidgets>
#include <QtGui/qvector3d.h>
#include "glbuffers.h"

View File

@ -45,7 +45,7 @@
//#include <GL/glew.h>
#include "glextensions.h"
#include <QtGui>
#include <QtWidgets>
#include <QtOpenGL>
#include "gltrianglemesh.h"

View File

@ -45,7 +45,7 @@
//#include <GL/glew.h>
#include "glextensions.h"
#include <QtGui>
#include <QtWidgets>
#include <QtOpenGL>
#include "roundedbox.h"

View File

@ -42,7 +42,7 @@
#ifndef TRACKBALL_H
#define TRACKBALL_H
#include <QtGui>
#include <QtWidgets>
#include <QtGui/qvector3d.h>
#include <QtGui/qquaternion.h>

View File

@ -41,7 +41,7 @@
#include "chip.h"
#include <QtGui>
#include <QtWidgets>
Chip::Chip(const QColor &color, int x, int y)
{

View File

@ -43,7 +43,7 @@
#define CHIP_H
#include <QtGui/QColor>
#include <QtGui/QGraphicsItem>
#include <QtWidgets/QGraphicsItem>
class Chip : public QGraphicsItem
{

View File

@ -4,7 +4,7 @@ HEADERS += mainwindow.h view.h chip.h
SOURCES += main.cpp
SOURCES += mainwindow.cpp view.cpp chip.cpp
contains(QT_CONFIG, opengl):QT += opengl
contains(QT_CONFIG, opengl):QT += opengl widgets
build_all:!build_pass {
CONFIG -= build_all

View File

@ -43,7 +43,7 @@
#include "view.h"
#include "chip.h"
#include <QtGui>
#include <QtWidgets>
MainWindow::MainWindow(QWidget *parent)
: QWidget(parent)

View File

@ -42,7 +42,7 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/qwidget.h>
#include <QtWidgets/qwidget.h>
QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
QT_FORWARD_DECLARE_CLASS(QGraphicsView)

View File

@ -41,7 +41,7 @@
#include "view.h"
#include <QtGui>
#include <QtWidgets>
#ifndef QT_NO_OPENGL
#include <QtOpenGL>
#endif

View File

@ -8,7 +8,7 @@ include($$SHARED_FOLDER/shared.pri)
RESOURCES += composition.qrc
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
QT += opengl widgets
}
# install

View File

@ -9,7 +9,7 @@ RESOURCES += deform.qrc
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
QT += opengl widgets
}
# install

View File

@ -96,3 +96,4 @@ demos_sub-attaq.subdir = sub-attaq
demos_pathstroke.depends = demos_shared
}
}
QT += widgets widgets

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
class Digits: public QWidget
{

View File

@ -9,3 +9,4 @@ target.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/digiflip
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/digiflip
INSTALLS += target sources
QT += widgets widgets

View File

@ -10,3 +10,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded
INSTALLS += sources
symbian: CONFIG += qt_demo
QT += widgets widgets

View File

@ -42,7 +42,7 @@
#include "flickable.h"
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
class FlickableTicker: QObject
{

View File

@ -10,3 +10,4 @@ target.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/flickable
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/flickable
INSTALLS += target sources
QT += widgets widgets

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#include "flickable.h"

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#include <QtNetwork>
#include "ui_form.h"

View File

@ -3,7 +3,7 @@ TARGET = flightinfo
SOURCES = flightinfo.cpp
FORMS += form.ui
RESOURCES = flightinfo.qrc
QT += network
QT += network widgets
symbian {
TARGET.UID3 = 0xA000CF74

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#include <QtNetwork>
#include <math.h>

View File

@ -6,7 +6,7 @@ SOURCES = lightmaps.cpp \
main.cpp \
mapzoom.cpp \
slippymap.cpp
QT += network
QT += network widgets
symbian {
TARGET.UID3 = 0xA000CF75

View File

@ -39,7 +39,7 @@
**
****************************************************************************/
#include <QtGui>
#include <QtWidgets>
#include <QtNetwork>
#include "lightmaps.h"
#include "mapzoom.h"

View File

@ -41,7 +41,7 @@
#include <math.h>
#include <QtGui>
#include <QtWidgets>
#include <QtNetwork>
#include "slippymap.h"

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#include <math.h>

View File

@ -11,3 +11,4 @@ target.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/raycasting
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded/raycasting
INSTALLS += target sources
QT += widgets widgets

View File

@ -15,3 +15,4 @@ symbian {
TARGET.UID3 = 0xA000A63F
CONFIG += qt_demo
}
QT += widgets widgets

View File

@ -41,7 +41,7 @@
#include "customproxy.h"
#include <QtGui>
#include <QtWidgets>
CustomProxy::CustomProxy(QGraphicsItem *parent, Qt::WindowFlags wFlags)
: QGraphicsProxyWidget(parent, wFlags), popupShown(false), currentPopup(0)

View File

@ -43,7 +43,7 @@
#define CUSTOMPROXY_H
#include <QtCore/qtimeline.h>
#include <QtGui/qgraphicsproxywidget.h>
#include <QtWidgets/qgraphicsproxywidget.h>
class CustomProxy : public QGraphicsProxyWidget
{

View File

@ -42,7 +42,7 @@
#include "embeddeddialog.h"
#include "ui_embeddeddialog.h"
#include <QtGui>
#include <QtWidgets>
EmbeddedDialog::EmbeddedDialog(QWidget *parent)
: QDialog(parent)

View File

@ -42,7 +42,7 @@
#ifndef EMBEDDEDDIALOG_H
#define EMBEDDEDDIALOG_H
#include <QtGui/qdialog.h>
#include <QtWidgets/qdialog.h>
QT_FORWARD_DECLARE_CLASS(Ui_embeddedDialog);

View File

@ -17,3 +17,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embeddeddialogs
INSTALLS += target sources
symbian: CONFIG += qt_demo
QT += widgets widgets

View File

@ -42,7 +42,7 @@
#include "customproxy.h"
#include "embeddeddialog.h"
#include <QtGui>
#include <QtWidgets>
int main(int argc, char *argv[])
{

View File

@ -44,7 +44,7 @@
#include "arthurwidgets.h"
#include <QtGui>
#include <QtWidgets>
class HoverPoints;

View File

@ -8,7 +8,7 @@ include($$SHARED_FOLDER/shared.pri)
RESOURCES += gradients.qrc
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
QT += opengl widgets
}
# install

View File

@ -17,3 +17,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/interview
INSTALLS += target sources
symbian: CONFIG += qt_demo
QT += widgets widgets

View File

@ -41,7 +41,7 @@
#ifndef MACMAINWINDOW_H
#define MACMAINWINDOW_H
#include <QtGui>
#include <QtWidgets>
#ifdef Q_WS_MAC

View File

@ -21,3 +21,4 @@ sources.files = $$SOURCES *.pro *.html
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/macmainwindow
INSTALLS += target sources
}
QT += widgets widgets

View File

@ -39,7 +39,7 @@
**
****************************************************************************/
#include <QtGui>
#include <QtWidgets>
#include "macmainwindow.h"
#ifdef Q_WS_MAC

View File

@ -15,3 +15,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/mainwindow
INSTALLS += target sources
symbian: CONFIG += qt_demo
QT += widgets widgets

View File

@ -43,7 +43,7 @@
#define PATHSTROKE_H
#include "arthurwidgets.h"
#include <QtGui>
#include <QtWidgets>
class PathStrokeRenderer : public ArthurFrame
{

View File

@ -9,7 +9,7 @@ RESOURCES += pathstroke.qrc
contains(QT_CONFIG, opengl) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
QT += opengl widgets
}
# install

View File

@ -42,7 +42,7 @@
#ifndef HOVERPOINTS_H
#define HOVERPOINTS_H
#include <QtGui>
#include <QtWidgets>
QT_FORWARD_DECLARE_CLASS(QBypassWidget)

View File

@ -3,7 +3,7 @@ CONFIG += static
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
QT += opengl widgets
}
build_all:!build_pass {
@ -11,7 +11,7 @@ build_all:!build_pass {
CONFIG += release
}
TARGET = demo_shared
QT += gui-private
QT += gui-private widgets
SOURCES += \
arthurstyle.cpp\

View File

@ -39,7 +39,7 @@
**
****************************************************************************/
#include <QtGui/QApplication>
#include <QtWidgets/QApplication>
#include "spreadsheet.h"
int main(int argc, char** argv) {

View File

@ -39,7 +39,7 @@
**
****************************************************************************/
#include <QtGui>
#include <QtWidgets>
#include "spreadsheet.h"
#include "spreadsheetdelegate.h"
#include "spreadsheetitem.h"

View File

@ -7,8 +7,9 @@ TARGET =
DEPENDPATH += .
INCLUDEPATH += .
QT += widgets
CONFIG += qt warn_on
#unix:contains(QT_CONFIG, dbus):QT += dbus
#unix:contains(QT_CONFIG, dbus):QT += dbus widgets
# Input
HEADERS += printview.h spreadsheet.h spreadsheetdelegate.h spreadsheetitem.h

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include "spreadsheetdelegate.h"
#include <QtGui>
#include <QtWidgets>
SpreadSheetDelegate::SpreadSheetDelegate(QObject *parent)
: QItemDelegate(parent) {}

View File

@ -43,7 +43,7 @@
#define SPREADSHEETITEM_H
#include <QTableWidgetItem>
#include <QtGui>
#include <QtWidgets>
#include "spreadsheet.h"
class SpreadSheetItem : public QTableWidgetItem

View File

@ -42,7 +42,7 @@
#include "browser.h"
#include "qsqlconnectiondialog.h"
#include <QtGui>
#include <QtWidgets>
#include <QtSql>
Browser::Browser(QWidget *parent)

View File

@ -41,7 +41,7 @@
#include "connectionwidget.h"
#include <QtGui>
#include <QtWidgets>
#include <QtSql>
ConnectionWidget::ConnectionWidget(QWidget *parent)

View File

@ -42,7 +42,7 @@
#include "browser.h"
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#include <QtSql>
void addConnectionsFromCommandline(const QStringList &args, Browser *browser)

View File

@ -1,7 +1,7 @@
TEMPLATE = app
TARGET = sqlbrowser
QT += sql
QT += sql widgets
HEADERS = browser.h connectionwidget.h qsqlconnectiondialog.h
SOURCES = main.cpp browser.cpp connectionwidget.cpp qsqlconnectiondialog.cpp

View File

@ -58,7 +58,7 @@
#include "graphicsscene.h"
// Qt
#include <QtGui/QKeyEventTransition>
#include <QtWidgets/QKeyEventTransition>
static const int MAX_BOMB = 5;

View File

@ -59,12 +59,12 @@
#include <QtCore/QStateMachine>
#include <QtCore/QFinalState>
#include <QtCore/QPauseAnimation>
#include <QtGui/QAction>
#include <QtWidgets/QAction>
#include <QtCore/QDir>
#include <QtGui/QApplication>
#include <QtGui/QMessageBox>
#include <QtGui/QGraphicsView>
#include <QtGui/QGraphicsSceneMouseEvent>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMessageBox>
#include <QtWidgets/QGraphicsView>
#include <QtWidgets/QGraphicsSceneMouseEvent>
#include <QtCore/QXmlStreamReader>
GraphicsScene::GraphicsScene(int x, int y, int width, int height, Mode mode)

View File

@ -43,7 +43,7 @@
#define __GRAPHICSSCENE__H__
//Qt
#include <QtGui/QGraphicsScene>
#include <QtWidgets/QGraphicsScene>
#include <QtCore/QSet>
#include <QtCore/QState>

View File

@ -39,7 +39,7 @@
**
****************************************************************************/
#include <QtGui>
#include <QtWidgets>
#include "mainwindow.h"

View File

@ -43,7 +43,7 @@
#define __MAINWINDOW__H__
//Qt
#include <QtGui/QMainWindow>
#include <QtWidgets/QMainWindow>
class GraphicsScene;
QT_BEGIN_NAMESPACE
class QGraphicsView;

View File

@ -46,7 +46,7 @@
#include "graphicsscene.h"
//Qt
#include <QtGui/QGraphicsObject>
#include <QtWidgets/QGraphicsObject>
class PixmapItem : public QGraphicsObject
{

View File

@ -43,7 +43,7 @@
#define PROGRESSITEM_H
//Qt
#include <QtGui/QGraphicsTextItem>
#include <QtWidgets/QGraphicsTextItem>
class ProgressItem : public QGraphicsTextItem
{

View File

@ -50,10 +50,10 @@
#include "textinformationitem.h"
//Qt
#include <QtGui/QMessageBox>
#include <QtGui/QGraphicsView>
#include <QtWidgets/QMessageBox>
#include <QtWidgets/QGraphicsView>
#include <QtCore/QStateMachine>
#include <QtGui/QKeyEventTransition>
#include <QtWidgets/QKeyEventTransition>
#include <QtCore/QFinalState>
PlayState::PlayState(GraphicsScene *scene, QState *parent)

View File

@ -46,7 +46,7 @@
#include <QtCore/QState>
#include <QtCore/QSignalTransition>
#include <QtCore/QPropertyAnimation>
#include <QtGui/QKeyEventTransition>
#include <QtWidgets/QKeyEventTransition>
#include <QtCore/QSet>
class GraphicsScene;

View File

@ -1,4 +1,4 @@
contains(QT_CONFIG, opengl):QT += opengl
contains(QT_CONFIG, opengl):QT += opengl widgets
HEADERS += boat.h \
bomb.h \
mainwindow.h \

View File

@ -43,7 +43,7 @@
#define __SUBMARINE__H__
//Qt
#include <QtGui/QGraphicsTransform>
#include <QtWidgets/QGraphicsTransform>
#include "pixmapitem.h"

View File

@ -60,7 +60,7 @@
//Qt
#include <QtCore/QPropertyAnimation>
#include <QtGui/QGraphicsScene>
#include <QtWidgets/QGraphicsScene>
//This state is describing when the boat is moving right
class MovementState : public QAnimationState

View File

@ -43,7 +43,7 @@
#define TEXTINFORMATIONITEM_H
//Qt
#include <QtGui/QGraphicsTextItem>
#include <QtWidgets/QGraphicsTextItem>
class TextInformationItem : public QGraphicsTextItem
{

View File

@ -20,3 +20,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/textedit
INSTALLS += target sources
symbian: CONFIG += qt_demo
QT += widgets widgets

View File

@ -16,3 +16,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/undo
INSTALLS += target sources
symbian: CONFIG += qt_demo
QT += widgets