From 9b34ab6db773568011dc85fd73156b63da377e01 Mon Sep 17 00:00:00 2001 From: Julian T Date: Fri, 14 Aug 2020 20:30:07 +0200 Subject: Better configuration --- app/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/mainwindow.cpp') 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 #include -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); -- cgit v1.2.3