pollymc/gui/pages/NotesPage.cpp
Petr Mrázek 1ed90293ac Unify look of all pages.
Now they have a QTabWidget with no tabs as a background.
2014-07-21 00:10:13 +02:00

22 lines
399 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->tabWidget->tabBar()->hide();
ui->noteEditor->setText(m_inst->notes());
}
NotesPage::~NotesPage()
{
delete ui;
}
bool NotesPage::apply()
{
m_inst->setNotes(ui->noteEditor->toPlainText());
return true;
}