#ifndef __APP_H__
#define __APP_H__
-#include <QtGui>
+#include <QtWidgets>
// Forward declarations
class MainWin;
#ifndef __EDITORWIDGET_H__
#define __EDITORWIDGET_H__
-#include <QtGui>
+#include <QtWidgets>
#include <stdint.h>
#include "boards.h"
void EditorWindow::SetNewName(QWidget * widget, QAbstractItemDelegate::EndEditHint)
{
QString newName = reinterpret_cast<QLineEdit *>(widget)->text();
- editor->SetNameOnCurrentLevel(newName.toAscii().data());
+ editor->SetNameOnCurrentLevel(newName.toUtf8().data());
}
#ifndef __EDITORWINDOW_H__
#define __EDITORWINDOW_H__
-#include <QtGui>
+#include <QtWidgets>
class EditorWidget;
class Level;
#ifndef __GAMEWIDGET_H__
#define __GAMEWIDGET_H__
-#include <QtGui>
+#include <QtWidgets>
class GameBoard;
class Level;
s = QString(tr("Score: %1")).arg(n);
gameBoard->score->setText(s);
-printf("OUS: n=%i, s=%s\n", n, s.toAscii().data());
+printf("OUS: n=%i, s=%s\n", n, s.toUtf8().data());
}
*/
#ifndef __MAINWIN_H__
#define __MAINWIN_H__
-#include <QtGui>
+#include <QtWidgets>
class GameWidget;
class EditorWindow;
RESOURCES += res/resources.qrc
#LIBS += -Ldxflib/lib -ldxf
#LIBS += -lao
+QT += widgets
# We stuff all the intermediate crap into obj/ so it won't confuse us mere mortals ;-)
OBJECTS_DIR = obj
src
HEADERS = \
- app.h \
- boards.h \
- editorwidget.h \
- editorwindow.h \
- gameboard.h \
- gamewidget.h \
- mainwin.h
+ src/app.h \
+ src/boards.h \
+ src/editorwidget.h \
+ src/editorwindow.h \
+ src/gameboard.h \
+ src/gamewidget.h \
+ src/mainwin.h
SOURCES = \
- app.cpp \
- boards.cpp \
- editorwidget.cpp \
- editorwindow.cpp \
- gameboard.cpp \
- gamewidget.cpp \
- mainwin.cpp
+ src/app.cpp \
+ src/boards.cpp \
+ src/editorwidget.cpp \
+ src/editorwindow.cpp \
+ src/gameboard.cpp \
+ src/gamewidget.cpp \
+ src/mainwin.cpp