src/document.cpp

changeset 8
44679e468ba9
child 9
8b9780700b5e
--- /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;
+}

mercurial