2014-06-18 00:15:01 +01:00
|
|
|
#include "NotesPage.h"
|
|
|
|
#include "ui_NotesPage.h"
|
2018-06-01 15:20:33 +01:00
|
|
|
#include <QTabBar>
|
2014-06-18 00:15:01 +01:00
|
|
|
|
|
|
|
NotesPage::NotesPage(BaseInstance *inst, QWidget *parent)
|
2018-07-15 13:51:05 +01:00
|
|
|
: QWidget(parent), ui(new Ui::NotesPage), m_inst(inst)
|
2014-06-18 00:15:01 +01:00
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
ui->setupUi(this);
|
|
|
|
ui->tabWidget->tabBar()->hide();
|
|
|
|
ui->noteEditor->setText(m_inst->notes());
|
2014-06-18 00:15:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
NotesPage::~NotesPage()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
delete ui;
|
2014-06-18 00:15:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool NotesPage::apply()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
m_inst->setNotes(ui->noteEditor->toPlainText());
|
|
|
|
return true;
|
2014-06-18 00:15:01 +01:00
|
|
|
}
|