diff options
Diffstat (limited to 'app/mainwindow.cpp')
-rw-r--r-- | app/mainwindow.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index e5f9bfb..3077168 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -1,8 +1,12 @@ #include "mainwindow.hpp" -MainWindow::MainWindow() - : drawer(500, 500) { +MainWindow::MainWindow(Renderer r) + : m_drawer(500, 500), + m_render(this, m_drawer, r) +{ + + setCentralWidget(&m_drawer); + - setCentralWidget(&drawer); } |