summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client.cpp
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-04 20:35:49 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-04 20:35:49 +0200
commita5ea024b0119a4b0fea858ae9115d744a786d3af (patch)
tree99408cf77bad1596c9e2fcdf035a2294eff64cdd /pacman-c++/client.cpp
parent0693d00da48d795c7ccb658e8b69fe17f4427337 (diff)
downloadfoop-a5ea024b0119a4b0fea858ae9115d744a786d3af.tar.gz
foop-a5ea024b0119a4b0fea858ae9115d744a786d3af.tar.bz2
foop-a5ea024b0119a4b0fea858ae9115d744a786d3af.zip
change project file:
use: qmake -config client or qmake -config main Added basic client gui infrastructure
Diffstat (limited to 'pacman-c++/client.cpp')
-rw-r--r--pacman-c++/client.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/pacman-c++/client.cpp b/pacman-c++/client.cpp
new file mode 100644
index 0000000..416bd12
--- /dev/null
+++ b/pacman-c++/client.cpp
@@ -0,0 +1,20 @@
1#include "client.h"
2
3Client::Client()
4{
5 mainWidget = new MainWidget();
6 setCentralWidget(mainWidget);
7}
8
9
10int main(int argc, char ** argv) {
11 QApplication app(argc, argv);
12 app.setApplicationName("pacman-client");
13
14 qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
15
16 Client client;
17 client.show();
18
19 return app.exec();
20}