summaryrefslogtreecommitdiffstats
path: root/q15/src/main.cpp
blob: 849a4ee611af7f56e950ed9156a1f69ddc9ab176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * $Id: main.cpp,v 0.1 2005/08/14 11:21:13 denis Exp $
 *
 * Author: Denis Kozadaev (denis@tambov.ru)
 * Description:
 *
 * See also: style(9)
 *
 * Hacked by:
 */

#include <stdlib.h>

#include <tqapplication.h>

#include "mainwindow.h"


const int XSize = 640, YSize = 480;

int
main(int argc, char *argv[])
{
	TQApplication	*app;
	MainWindow	*mw;
	int		result;

	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);
}