src/document.cpp

changeset 26
3a9e761e4faa
parent 24
1a0faaaceb84
child 35
98906a94732f
equal deleted inserted replaced
25:6de5ac1fb471 26:3a9e761e4faa
18 18
19 #include "document.h" 19 #include "document.h"
20 #include "ui_document.h" 20 #include "ui_document.h"
21 #include "model.h" 21 #include "model.h"
22 22
23 Document::Document(Model* model, DocumentManager* documents, QWidget* parent) : 23 Document::Document(Model* model, DocumentManager* documents, const ColorTable& colorTable, QWidget* parent) :
24 QWidget{parent}, 24 QWidget{parent},
25 model{model}, 25 model{model},
26 documents{documents}, 26 documents{documents},
27 renderer{new PartRenderer{model, documents, this}}, 27 colorTable{colorTable},
28 renderer{new PartRenderer{model, documents, colorTable, this}},
28 ui{*new Ui::Document} 29 ui{*new Ui::Document}
29 { 30 {
30 this->ui.setupUi(this); 31 this->ui.setupUi(this);
31 this->ui.listView->setModel(model); 32 this->ui.listView->setModel(model);
32 QVBoxLayout* layout = new QVBoxLayout; 33 QVBoxLayout* layout = new QVBoxLayout;

mercurial