summaryrefslogtreecommitdiff
path: root/main.cpp
blob: ed67d5f180b66bcc8b89fcaa55ceb30abc5a9fd8 (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
#include "QtTermTCP.h"
#include <QApplication>
#include <qscreen.h>

QApplication * a;

int screenHeight = 0;				// used to control dialog sizes on Android
int screenWidth = 0;

int main(int argc, char *argv[])
{
	a = new QApplication (argc, argv);

	QSize r = a->screens()[0]->size();

	screenHeight = r.height();
	screenWidth = r.width();

	QtTermTCP w;

//#ifdef ANDROID
//	w.setWindowFlags(Qt::Window | Qt::CustomizeWindowHint); // Qt::FramelessWindowHint);
//#endif
	w.show();
	return a->exec();
}