2013-08-25 21:48:41 +01:00
|
|
|
#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);
|
2013-09-08 17:13:09 +01:00
|
|
|
setWindowTitle(tr("Edit notes of %1").arg(m_instance_name));
|
2013-08-25 21:48:41 +01:00
|
|
|
//connect(ui->closeButton, SIGNAL(clicked()), SLOT(close()));
|
|
|
|
}
|
|
|
|
|
|
|
|
EditNotesDialog::~EditNotesDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString EditNotesDialog::getText()
|
|
|
|
{
|
|
|
|
return ui->noteEditor->toPlainText();
|
|
|
|
}
|