From a5ea024b0119a4b0fea858ae9115d744a786d3af Mon Sep 17 00:00:00 2001 From: totycro Date: Mon, 4 Apr 2011 20:35:49 +0200 Subject: change project file: use: qmake -config client or qmake -config main Added basic client gui infrastructure --- pacman-c++/client.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pacman-c++/client.cpp (limited to 'pacman-c++/client.cpp') 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 @@ +#include "client.h" + +Client::Client() +{ + mainWidget = new MainWidget(); + setCentralWidget(mainWidget); +} + + +int main(int argc, char ** argv) { + QApplication app(argc, argv); + app.setApplicationName("pacman-client"); + + qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); + + Client client; + client.show(); + + return app.exec(); +} -- cgit v1.2.3