summaryrefslogtreecommitdiffstats
path: root/application/pages/NotesPage.cpp
blob: 48bb468c1000a183b8db3bb519abf8914d17c84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}