2014-06-18 04:45:01 +05:30
|
|
|
#include "NotesPage.h"
|
|
|
|
#include "ui_NotesPage.h"
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
QString NotesPage::displayName() const
|
2014-06-18 04:45:01 +05:30
|
|
|
{
|
|
|
|
return tr("Notes");
|
|
|
|
}
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
QIcon NotesPage::icon() const
|
2014-06-18 04:45:01 +05:30
|
|
|
{
|
|
|
|
return QIcon::fromTheme("news");
|
|
|
|
}
|
|
|
|
|
2014-07-12 21:28:23 +05:30
|
|
|
QString NotesPage::id() const
|
2014-06-18 04:45:01 +05:30
|
|
|
{
|
|
|
|
return "notes";
|
|
|
|
}
|
|
|
|
|
|
|
|
NotesPage::NotesPage(BaseInstance *inst, QWidget *parent)
|
|
|
|
: QWidget(parent), ui(new Ui::NotesPage), m_inst(inst)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
ui->noteEditor->setText(m_inst->notes());
|
|
|
|
}
|
|
|
|
|
|
|
|
NotesPage::~NotesPage()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool NotesPage::apply()
|
|
|
|
{
|
|
|
|
m_inst->setNotes(ui->noteEditor->toPlainText());
|
|
|
|
return true;
|
|
|
|
}
|