summaryrefslogtreecommitdiffstats
path: root/gui/EditNotesDialog.cpp
blob: 535ca804cf354d8671d059deac979d13e36998af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "EditNotesDialog.h"
#include "ui_EditNotesDialog.h"
#include "gui/platform.h"

#include <QIcon>
#include <QApplication>

EditNotesDialog::EditNotesDialog( QString notes, QString name, QWidget* parent ) :
    m_instance_notes(notes),
    m_instance_name(name),
    QDialog(parent),
    ui(new Ui::EditNotesDialog)
{
    MultiMCPlatform::fixWM_CLASS(this);
	ui->setupUi(this);
	ui->noteEditor->setText(notes);
	setWindowTitle(tr("Edit notes of %1").arg(m_instance_name));
	//connect(ui->closeButton, SIGNAL(clicked()), SLOT(close()));
}

EditNotesDialog::~EditNotesDialog()
{
    delete ui;
}

QString EditNotesDialog::getText()
{
	return ui->noteEditor->toPlainText();
}