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; |