sneedmc/launcher/pages/instance/NotesPage.cpp

22 lines
402 B
C++
Raw Normal View History

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