mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
21 lines
365 B
C++
21 lines
365 B
C++
|
#include "NotesPage.h"
|
||
|
#include "ui_NotesPage.h"
|
||
|
|
||
|
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;
|
||
|
}
|