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