summaryrefslogtreecommitdiffstats
path: root/q15/src/mainwindow.cpp
diff options
context:
space:
mode:
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();
}