fix compilation for demos/
This commit is contained in:
parent
6773a7f870
commit
16f7919629
@ -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
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include "bookdelegate.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
BookDelegate::BookDelegate(QObject *parent)
|
||||
: QSqlRelationalDelegate(parent), star(QPixmap(":images/star.png"))
|
||||
|
@ -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
|
||||
|
@ -42,7 +42,7 @@
|
||||
#ifndef BOOKWINDOW_H
|
||||
#define BOOKWINDOW_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtSql>
|
||||
|
||||
#include "ui_bookwindow.h"
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include "bookwindow.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ SOURCES += 3rdparty/fbm.c \
|
||||
|
||||
RESOURCES += boxes.qrc
|
||||
|
||||
QT += opengl
|
||||
QT += opengl widgets
|
||||
|
||||
# install
|
||||
target.path = $$[QT_INSTALL_DEMOS]/qtbase/boxes
|
||||
|
@ -45,7 +45,7 @@
|
||||
//#include <GL/glew.h>
|
||||
#include "glextensions.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtOpenGL>
|
||||
|
||||
#define BUFFER_OFFSET(i) ((char*)0 + (i))
|
||||
|
@ -45,7 +45,7 @@
|
||||
//#include <GL/glew.h>
|
||||
#include "glextensions.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtOpenGL>
|
||||
|
||||
#include "glbuffers.h"
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
#include "scene.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QGLWidget>
|
||||
|
||||
class GraphicsView : public QGraphicsView
|
||||
|
@ -42,7 +42,7 @@
|
||||
#ifndef QTBOX_H
|
||||
#define QTBOX_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
#include <QtGui/qvector3d.h>
|
||||
#include "glbuffers.h"
|
||||
|
@ -45,7 +45,7 @@
|
||||
//#include <GL/glew.h>
|
||||
#include "glextensions.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtOpenGL>
|
||||
|
||||
#include "gltrianglemesh.h"
|
||||
|
@ -45,7 +45,7 @@
|
||||
//#include <GL/glew.h>
|
||||
#include "glextensions.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtOpenGL>
|
||||
|
||||
#include "roundedbox.h"
|
||||
|
@ -42,7 +42,7 @@
|
||||
#ifndef TRACKBALL_H
|
||||
#define TRACKBALL_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
#include <QtGui/qvector3d.h>
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include "chip.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
Chip::Chip(const QColor &color, int x, int y)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define CHIP_H
|
||||
|
||||
#include <QtGui/QColor>
|
||||
#include <QtGui/QGraphicsItem>
|
||||
#include <QtWidgets/QGraphicsItem>
|
||||
|
||||
class Chip : public QGraphicsItem
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include "view.h"
|
||||
#include "chip.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
|
@ -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)
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include "view.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#ifndef QT_NO_OPENGL
|
||||
#include <QtOpenGL>
|
||||
#endif
|
||||
|
@ -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
|
||||
|
@ -9,7 +9,7 @@ RESOURCES += deform.qrc
|
||||
|
||||
contains(QT_CONFIG, opengl) {
|
||||
DEFINES += QT_OPENGL_SUPPORT
|
||||
QT += opengl
|
||||
QT += opengl widgets
|
||||
}
|
||||
|
||||
# install
|
||||
|
@ -96,3 +96,4 @@ demos_sub-attaq.subdir = sub-attaq
|
||||
demos_pathstroke.depends = demos_shared
|
||||
}
|
||||
}
|
||||
QT += widgets widgets
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
class Digits: public QWidget
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -10,3 +10,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embedded
|
||||
INSTALLS += sources
|
||||
|
||||
symbian: CONFIG += qt_demo
|
||||
QT += widgets widgets
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "flickable.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
class FlickableTicker: QObject
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "flickable.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtNetwork>
|
||||
|
||||
#include "ui_form.h"
|
||||
|
@ -3,7 +3,7 @@ TARGET = flightinfo
|
||||
SOURCES = flightinfo.cpp
|
||||
FORMS += form.ui
|
||||
RESOURCES = flightinfo.qrc
|
||||
QT += network
|
||||
QT += network widgets
|
||||
|
||||
symbian {
|
||||
TARGET.UID3 = 0xA000CF74
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtNetwork>
|
||||
|
||||
#include <math.h>
|
||||
|
@ -6,7 +6,7 @@ SOURCES = lightmaps.cpp \
|
||||
main.cpp \
|
||||
mapzoom.cpp \
|
||||
slippymap.cpp
|
||||
QT += network
|
||||
QT += network widgets
|
||||
|
||||
symbian {
|
||||
TARGET.UID3 = 0xA000CF75
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtNetwork>
|
||||
#include "lightmaps.h"
|
||||
#include "mapzoom.h"
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtNetwork>
|
||||
#include "slippymap.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
@ -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
|
||||
|
@ -15,3 +15,4 @@ symbian {
|
||||
TARGET.UID3 = 0xA000A63F
|
||||
CONFIG += qt_demo
|
||||
}
|
||||
QT += widgets widgets
|
||||
|
@ -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)
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define CUSTOMPROXY_H
|
||||
|
||||
#include <QtCore/qtimeline.h>
|
||||
#include <QtGui/qgraphicsproxywidget.h>
|
||||
#include <QtWidgets/qgraphicsproxywidget.h>
|
||||
|
||||
class CustomProxy : public QGraphicsProxyWidget
|
||||
{
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "embeddeddialog.h"
|
||||
#include "ui_embeddeddialog.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
EmbeddedDialog::EmbeddedDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
|
@ -42,7 +42,7 @@
|
||||
#ifndef EMBEDDEDDIALOG_H
|
||||
#define EMBEDDEDDIALOG_H
|
||||
|
||||
#include <QtGui/qdialog.h>
|
||||
#include <QtWidgets/qdialog.h>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(Ui_embeddedDialog);
|
||||
|
||||
|
@ -17,3 +17,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/embeddeddialogs
|
||||
INSTALLS += target sources
|
||||
|
||||
symbian: CONFIG += qt_demo
|
||||
QT += widgets widgets
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "customproxy.h"
|
||||
#include "embeddeddialog.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -44,7 +44,7 @@
|
||||
|
||||
#include "arthurwidgets.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
class HoverPoints;
|
||||
|
||||
|
@ -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
|
||||
|
@ -17,3 +17,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/interview
|
||||
INSTALLS += target sources
|
||||
|
||||
symbian: CONFIG += qt_demo
|
||||
QT += widgets widgets
|
||||
|
@ -41,7 +41,7 @@
|
||||
#ifndef MACMAINWINDOW_H
|
||||
#define MACMAINWINDOW_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
|
||||
|
@ -21,3 +21,4 @@ sources.files = $$SOURCES *.pro *.html
|
||||
sources.path = $$[QT_INSTALL_DEMOS]/qtbase/macmainwindow
|
||||
INSTALLS += target sources
|
||||
}
|
||||
QT += widgets widgets
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "macmainwindow.h"
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
|
@ -15,3 +15,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/mainwindow
|
||||
INSTALLS += target sources
|
||||
|
||||
symbian: CONFIG += qt_demo
|
||||
QT += widgets widgets
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define PATHSTROKE_H
|
||||
|
||||
#include "arthurwidgets.h"
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
class PathStrokeRenderer : public ArthurFrame
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ RESOURCES += pathstroke.qrc
|
||||
|
||||
contains(QT_CONFIG, opengl) {
|
||||
DEFINES += QT_OPENGL_SUPPORT
|
||||
QT += opengl
|
||||
QT += opengl widgets
|
||||
}
|
||||
|
||||
# install
|
||||
|
@ -42,7 +42,7 @@
|
||||
#ifndef HOVERPOINTS_H
|
||||
#define HOVERPOINTS_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QBypassWidget)
|
||||
|
||||
|
@ -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\
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include "spreadsheet.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "spreadsheet.h"
|
||||
#include "spreadsheetdelegate.h"
|
||||
#include "spreadsheetitem.h"
|
||||
|
@ -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
|
||||
|
@ -40,7 +40,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "spreadsheetdelegate.h"
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
SpreadSheetDelegate::SpreadSheetDelegate(QObject *parent)
|
||||
: QItemDelegate(parent) {}
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define SPREADSHEETITEM_H
|
||||
|
||||
#include <QTableWidgetItem>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include "spreadsheet.h"
|
||||
|
||||
class SpreadSheetItem : public QTableWidgetItem
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "browser.h"
|
||||
#include "qsqlconnectiondialog.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtSql>
|
||||
|
||||
Browser::Browser(QWidget *parent)
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#include "connectionwidget.h"
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtSql>
|
||||
|
||||
ConnectionWidget::ConnectionWidget(QWidget *parent)
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "browser.h"
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
#include <QtSql>
|
||||
|
||||
void addConnectionsFromCommandline(const QStringList &args, Browser *browser)
|
||||
|
@ -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
|
||||
|
@ -58,7 +58,7 @@
|
||||
#include "graphicsscene.h"
|
||||
|
||||
// Qt
|
||||
#include <QtGui/QKeyEventTransition>
|
||||
#include <QtWidgets/QKeyEventTransition>
|
||||
|
||||
static const int MAX_BOMB = 5;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define __GRAPHICSSCENE__H__
|
||||
|
||||
//Qt
|
||||
#include <QtGui/QGraphicsScene>
|
||||
#include <QtWidgets/QGraphicsScene>
|
||||
#include <QtCore/QSet>
|
||||
#include <QtCore/QState>
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define __MAINWINDOW__H__
|
||||
|
||||
//Qt
|
||||
#include <QtGui/QMainWindow>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
class GraphicsScene;
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QGraphicsView;
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include "graphicsscene.h"
|
||||
|
||||
//Qt
|
||||
#include <QtGui/QGraphicsObject>
|
||||
#include <QtWidgets/QGraphicsObject>
|
||||
|
||||
class PixmapItem : public QGraphicsObject
|
||||
{
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define PROGRESSITEM_H
|
||||
|
||||
//Qt
|
||||
#include <QtGui/QGraphicsTextItem>
|
||||
#include <QtWidgets/QGraphicsTextItem>
|
||||
|
||||
class ProgressItem : public QGraphicsTextItem
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include <QtCore/QState>
|
||||
#include <QtCore/QSignalTransition>
|
||||
#include <QtCore/QPropertyAnimation>
|
||||
#include <QtGui/QKeyEventTransition>
|
||||
#include <QtWidgets/QKeyEventTransition>
|
||||
#include <QtCore/QSet>
|
||||
|
||||
class GraphicsScene;
|
||||
|
@ -1,4 +1,4 @@
|
||||
contains(QT_CONFIG, opengl):QT += opengl
|
||||
contains(QT_CONFIG, opengl):QT += opengl widgets
|
||||
HEADERS += boat.h \
|
||||
bomb.h \
|
||||
mainwindow.h \
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define __SUBMARINE__H__
|
||||
|
||||
//Qt
|
||||
#include <QtGui/QGraphicsTransform>
|
||||
#include <QtWidgets/QGraphicsTransform>
|
||||
|
||||
#include "pixmapitem.h"
|
||||
|
||||
|
@ -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
|
||||
|
@ -43,7 +43,7 @@
|
||||
#define TEXTINFORMATIONITEM_H
|
||||
|
||||
//Qt
|
||||
#include <QtGui/QGraphicsTextItem>
|
||||
#include <QtWidgets/QGraphicsTextItem>
|
||||
|
||||
class TextInformationItem : public QGraphicsTextItem
|
||||
{
|
||||
|
@ -20,3 +20,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/textedit
|
||||
INSTALLS += target sources
|
||||
|
||||
symbian: CONFIG += qt_demo
|
||||
QT += widgets widgets
|
||||
|
@ -16,3 +16,4 @@ sources.path = $$[QT_INSTALL_DEMOS]/qtbase/undo
|
||||
INSTALLS += target sources
|
||||
|
||||
symbian: CONFIG += qt_demo
|
||||
QT += widgets
|
||||
|
Loading…
Reference in New Issue
Block a user