aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui/main.cpp')
-rw-r--r--qtmips_gui/main.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/qtmips_gui/main.cpp b/qtmips_gui/main.cpp
index b48f94e..1c03f3f 100644
--- a/qtmips_gui/main.cpp
+++ b/qtmips_gui/main.cpp
@@ -1,11 +1,14 @@
-#include "mainwindow.h"
#include <QApplication>
+#include <QCommandLineParser>
+#include "mainwindow.h"
+
+int main(int argc, char *argv[]) {
+ QApplication app(argc, argv);
+ app.setApplicationName("qtmips_gui");
+ app.setApplicationVersion("0.1");
-int main(int argc, char *argv[])
-{
- QApplication a(argc, argv);
MainWindow w;
- w.show();
+ w.start();
- return a.exec();
+ return app.exec();
}