summaryrefslogtreecommitdiffstats
path: root/gui/EditNotesDialog.cpp
blob: 6cc389f6e295cee25cab52f8103908b99db753a8 (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
#include "EditNotesDialog.h"
#include "ui_EditNotesDialog.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)
{
	ui->setupUi(this);
	ui->noteEditor->setText(notes);
	setWindowTitle("Edit notes of " + m_instance_name);
	//connect(ui->closeButton, SIGNAL(clicked()), SLOT(close()));
}

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

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