diff -r cef43609a374 -r 0133e565e072 src/document.cpp --- a/src/document.cpp Sat Dec 14 23:00:01 2019 +0200 +++ b/src/document.cpp Wed Jan 01 17:45:56 2020 +0200 @@ -2,13 +2,18 @@ #include "ui_document.h" #include "model.h" -Document::Document(Model* model, QWidget* parent) : +Document::Document(Model* model, DocumentManager* documents, QWidget* parent) : QWidget{parent}, model{model}, + documents{documents}, + renderer{new PartRenderer{model, documents, this}}, ui{*new Ui::Document} { this->ui.setupUi(this); this->ui.listView->setModel(model); + QVBoxLayout* layout = new QVBoxLayout; + layout->addWidget(this->renderer); + this->ui.viewportFrame->setLayout(layout); connect(this->ui.splitter, &QSplitter::splitterMoved, this, &Document::splitterChanged); }