summaryrefslogtreecommitdiffstats
path: root/q15/src/mainwindow.cpp
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-11-23 16:16:19 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-12-02 19:51:33 +0100
commit84575d76c007b8aad8f749d4b9dfd46d94e5c5cb (patch)
tree57295accdac6350580291a99904cd203de32da3e /q15/src/mainwindow.cpp
parent5bf9a46ed843025016c7b7be43a1ca8754d60b79 (diff)
downloadtdegames-84575d76.tar.gz
tdegames-84575d76.zip
Remove QT4 stuff.
Signed-off-by: gregory guy <gregory-tde@laposte.net> (cherry picked from commit e4cea29e0476a2c250ee4a265cc51892eb4f6370)
Diffstat (limited to 'q15/src/mainwindow.cpp')
-rw-r--r--q15/src/mainwindow.cpp24
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();
}