--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/document.cpp Sun Nov 03 12:17:41 2019 +0200 @@ -0,0 +1,17 @@ +#include "document.h" +#include "ui_document.h" +#include "model.h" + +Document::Document(Model* model, QWidget* parent) : + QWidget{parent}, + model{model}, + ui{*new Ui::Document} +{ + this->ui.setupUi(this); + this->ui.listView->setModel(model); +} + +Document::~Document() +{ + delete &this->ui; +}