src/document.cpp

changeset 8
44679e468ba9
child 9
8b9780700b5e
equal deleted inserted replaced
7:68443f5be176 8:44679e468ba9
1 #include "document.h"
2 #include "ui_document.h"
3 #include "model.h"
4
5 Document::Document(Model* model, QWidget* parent) :
6 QWidget{parent},
7 model{model},
8 ui{*new Ui::Document}
9 {
10 this->ui.setupUi(this);
11 this->ui.listView->setModel(model);
12 }
13
14 Document::~Document()
15 {
16 delete &this->ui;
17 }

mercurial