PrismLauncher/application/pages/instance/NotesPage.cpp

23 lines
418 B
C++
Raw Normal View History

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