summaryrefslogtreecommitdiffstats
path: root/application/pages/instance/NotesPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/pages/instance/NotesPage.cpp')
-rw-r--r--application/pages/instance/NotesPage.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/application/pages/instance/NotesPage.cpp b/application/pages/instance/NotesPage.cpp
new file mode 100644
index 00000000..48bb468c
--- /dev/null
+++ b/application/pages/instance/NotesPage.cpp
@@ -0,0 +1,21 @@
+#include "NotesPage.h"
+#include "ui_NotesPage.h"
+
+NotesPage::NotesPage(BaseInstance *inst, QWidget *parent)
+ : QWidget(parent), ui(new Ui::NotesPage), m_inst(inst)
+{
+ ui->setupUi(this);
+ ui->tabWidget->tabBar()->hide();
+ ui->noteEditor->setText(m_inst->notes());
+}
+
+NotesPage::~NotesPage()
+{
+ delete ui;
+}
+
+bool NotesPage::apply()
+{
+ m_inst->setNotes(ui->noteEditor->toPlainText());
+ return true;
+}