pollymc/launcher/ui/pages/instance/NotesPage.cpp

27 lines
466 B
C++
Raw Normal View History

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)
2018-07-15 18:21:05 +05:30
: QWidget(parent), ui(new Ui::NotesPage), m_inst(inst)
2014-06-18 04:45:01 +05:30
{
2018-07-15 18:21:05 +05:30
ui->setupUi(this);
ui->noteEditor->setText(m_inst->notes());
2014-06-18 04:45:01 +05:30
}
NotesPage::~NotesPage()
{
2018-07-15 18:21:05 +05:30
delete ui;
2014-06-18 04:45:01 +05:30
}
bool NotesPage::apply()
{
2018-07-15 18:21:05 +05:30
m_inst->setNotes(ui->noteEditor->toPlainText());
return true;
2014-06-18 04:45:01 +05:30
}
void NotesPage::retranslate()
{
ui->retranslateUi(this);
}