diff options
author | Denis Kozadaev <[email protected]> | 2020-03-28 14:31:25 +0300 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-12-02 19:51:24 +0100 |
commit | afd39a42465117e8926ad7a858dc65c9bf654fa0 (patch) | |
tree | afbe8c4d9805902061830956bf6cd57674e196d2 /q15/src/main.cpp | |
parent | 36d0f854d7fc6415b31e262d0f16c91159c41b4a (diff) | |
download | tdegames-afd39a42465117e8926ad7a858dc65c9bf654fa0.tar.gz tdegames-afd39a42465117e8926ad7a858dc65c9bf654fa0.zip |
fifteen puzzle game
Signed-off-by: Denis Kozadaev <[email protected]>
(cherry picked from commit b4978e97409c609686dc6eb97b150ed2e677ff13)
Diffstat (limited to 'q15/src/main.cpp')
-rw-r--r-- | q15/src/main.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/q15/src/main.cpp b/q15/src/main.cpp new file mode 100644 index 00000000..cf90046a --- /dev/null +++ b/q15/src/main.cpp @@ -0,0 +1,50 @@ +/* + * $Id: main.cpp,v 0.1 2005/08/14 11:21:13 denis Exp $ + * + * Author: Denis Kozadaev ([email protected]) + * Description: + * + * See also: style(9) + * + * Hacked by: + */ + +#include <stdlib.h> + +#if QT_VERSION >= 0x040000 +#include <QtGui/QApplication> +#else +#include <ntqapplication.h> +#endif + +#include "mainwindow.h" + + +const int + XSize = 640, + YSize = 480; + +int +main(int argc, char *argv[]) +{ + TQApplication *app; + MainWindow *mw; + int result; + +#if QT_VERSION >= 0x040000 + QApplication::setFont(QFont("textbookc", 10)); +#endif + app = new TQApplication(argc, argv); + mw = new MainWindow(NULL); + + mw->resize(XSize, YSize); + mw->show(); + mw->setMinimumSize(mw->size()); + mw->setMaximumSize(mw->size()); + result = app->exec(); + + delete mw; + delete app; + + return (result); +} |