From 20b9f2b42a3b58b6081af271774fbcc34025dccb Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 25 Jul 2021 19:11:59 +0200 Subject: NOISSUE Flatten gui and logic libraries into MultiMC --- launcher/pages/instance/NotesPage.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 launcher/pages/instance/NotesPage.cpp (limited to 'launcher/pages/instance/NotesPage.cpp') diff --git a/launcher/pages/instance/NotesPage.cpp b/launcher/pages/instance/NotesPage.cpp new file mode 100644 index 00000000..fa966c91 --- /dev/null +++ b/launcher/pages/instance/NotesPage.cpp @@ -0,0 +1,21 @@ +#include "NotesPage.h" +#include "ui_NotesPage.h" +#include + +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; +} -- cgit