diff options
| author | gregory guy <gregory-tde@laposte.net> | 2020-11-23 16:16:19 +0100 |
|---|---|---|
| committer | gregory guy <gregory-tde@laposte.net> | 2020-12-01 12:20:51 +0100 |
| commit | e4cea29e0476a2c250ee4a265cc51892eb4f6370 (patch) | |
| tree | b0225a8e056b0df05e080f2aeaf072f599100b5a /q15/src/mainwindow.cpp | |
| parent | 0683f09c4a902a13b826a06ef95377b6352801f8 (diff) | |
| download | tdegames-e4cea29e0476a2c250ee4a265cc51892eb4f6370.tar.gz tdegames-e4cea29e0476a2c250ee4a265cc51892eb4f6370.zip | |
Remove QT4 stuff.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'q15/src/mainwindow.cpp')
| -rw-r--r-- | q15/src/mainwindow.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/q15/src/mainwindow.cpp b/q15/src/mainwindow.cpp index 6b771e74..147e8d8e 100644 --- a/q15/src/mainwindow.cpp +++ b/q15/src/mainwindow.cpp @@ -9,32 +9,13 @@ * Hacked by: */ -#if QT_VERSION >= 0x040000 -#include <QtGui/QApplication> -#else #include <ntqapplication.h> -#endif #include "mainwindow.h" -#if QT_VERSION >= 0x040000 -MainWindow::MainWindow(QWidget *parent) - :QMainWindow(parent) -#else MainWindow::MainWindow(TQWidget *parent, const char *name) :TQMainWindow(parent, name) -#endif { - -#if QT_VERSION >= 0x040000 - file = new QMenu(tr("File"), this); - file->addAction(tr("New"), this, SLOT(newGame()), Qt::CTRL + Qt::Key_N); - file->addAction(tr("Load an image"), this, SLOT(loadImage()), - Qt::CTRL + Qt::Key_L); - file->addAction(tr("Quit"), qApp, SLOT(quit()), Qt::CTRL + Qt::Key_Q); - - menuBar()->addMenu(file); -#else file = new TQPopupMenu(this); file->insertItem(tr("New"), this, SLOT(newGame()), TQt::CTRL + TQt::Key_N); file->insertItem(tr("Load an image"), this, SLOT(loadImage()), @@ -42,14 +23,13 @@ MainWindow::MainWindow(TQWidget *parent, const char *name) file->insertItem(tr("Quit"), tqApp, SLOT(quit()), TQt::CTRL + TQt::Key_Q); menuBar()->insertItem(tr("File"), file); -#endif + gb = new GameBoard(this); setCentralWidget(gb); } MainWindow::~MainWindow() { - delete gb; delete file; } @@ -58,7 +38,6 @@ MainWindow::~MainWindow() void MainWindow::newGame() { - gb->newGame(); } @@ -66,7 +45,6 @@ MainWindow::newGame() void MainWindow::loadImage() { - gb->loadImage(); } |
