summaryrefslogtreecommitdiffstats
path: root/labb3/tiles/tilemain.cpp
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2020-08-17 14:57:07 +0200
committerGustav Sörnäs <gusso230@student.liu.se>2020-08-17 14:57:07 +0200
commitd894e06c6e6a335ea672ca2aaf30066b0a9d077a (patch)
tree8fbea33bf6a8622e435aeedbc7c2a8b5b82204d9 /labb3/tiles/tilemain.cpp
parentb1bf345edb518800d0cfeae97eceacf51985e7e7 (diff)
downloadtddd86-d894e06c6e6a335ea672ca2aaf30066b0a9d077a.tar.gz
add given files
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
+}