]> Shamusworld >> Repos - wozmaker/blob - src/app.cpp
Flesh out the disk settings dialog.
[wozmaker] / src / app.cpp
1 //
2 // app.cpp: Implementation of the application
3 //
4 // Part of the WOZ Maker project
5 // by James Hammons
6 // (C) 2018 Underground Software
7 // See the README and GPLv3 files for licensing and warranty information
8 //
9
10 #include "app.h"
11
12 #include <QApplication>
13 #include "mainwin.h"
14
15 // Main app constructor--we stick globally accessible stuff here...
16
17 App::App(int & argc, char * argv[]): QApplication(argc, argv)
18 {
19         mainWindow = new MainWin;
20         mainWindow->show();
21 }
22
23
24 App::~App()
25 {
26         delete mainWindow;
27 }
28
29
30 // Here's the main application loop--short and simple...
31 int main(int argc, char * argv[])
32 {
33         // This must the same name as the .qrc filename
34         Q_INIT_RESOURCE(resources);
35
36         App app(argc, argv);
37
38         return app.exec();
39 }
40