summaryrefslogtreecommitdiffstats
path: root/labb3/tiles/tilemain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'labb3/tiles/tilemain.cpp')
-rw-r--r--labb3/tiles/tilemain.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/labb3/tiles/tilemain.cpp b/labb3/tiles/tilemain.cpp
new file mode 100644
index 0000000..f93a787
--- /dev/null
+++ b/labb3/tiles/tilemain.cpp
@@ -0,0 +1,18 @@
+/*
+ * TDDD86 Tiles
+ * This client program uses your TileList class and contains the 'main'
+ * function to set up the overall program's graphical user interface.
+ * Your code should work properly with an unmodified version of this file.
+ */
+
+#include <QApplication>
+#include "mainwindow.h"
+
+int main(int argc, char *argv[]) {
+ QApplication a(argc, argv);
+
+ MainWindow view;
+ view.show();
+
+ return a.exec(); // start Qt event loop
+}