aboutsummaryrefslogtreecommitdiff
path: root/app/mainwindow.cpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-08-14 20:30:07 +0200
committerJulian T <julian@jtle.dk>2020-09-16 21:05:58 +0200
commit9b34ab6db773568011dc85fd73156b63da377e01 (patch)
tree2511b89ecdf948826e51d342610635b7e8dfbf33 /app/mainwindow.cpp
parent5ca04e5b2ec8eef88df6cbd4e3d09ac7dab55c0d (diff)
Better configuration
Diffstat (limited to 'app/mainwindow.cpp')
-rw-r--r--app/mainwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 3fcc9c5..eed98f9 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -6,10 +6,11 @@
#include <QFileDialog>
#include <QMessageBox>
-MainWindow::MainWindow(Renderer r)
- : m_drawer(500, 500),
+MainWindow::MainWindow(Renderer r, const Config &conf)
+ : m_drawer(conf),
runstatus("Not running", this),
- m_render(this, m_drawer, r, &runstatus)
+ m_render(this, m_drawer, r, conf, &runstatus),
+ m_conf(conf)
{
setCentralWidget(&m_drawer);