]> Shamusworld >> Repos - warehouse-man-deluxe/blob - src/app.cpp
Initial commit.
[warehouse-man-deluxe] / src / app.cpp
1 //
2 // app.cpp: Implementation of the application
3 //
4 // Part of the Warehouse Man Deluxe Project
5 // (C) 2014 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
7 //
8 // JLH = James Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  -------------------------------------------------------------
12 // JLH  03/01/2014  Created this file
13 //
14
15 #include "app.h"
16
17 #include <QApplication>
18 #include "mainwin.h"
19
20 // Main app constructor--we stick globally accessible stuff here...
21
22 App::App(int & argc, char * argv[]): QApplication(argc, argv)
23 {
24         mainWindow = new MainWin;
25         mainWindow->show();
26 }
27
28
29 // Here's the main application loop--short and simple...
30 int main(int argc, char * argv[])
31 {
32         // This must the same name as the .qrc filename
33         Q_INIT_RESOURCE(resources);
34
35         App app(argc, argv);
36
37         return app.exec();
38 }
39