mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-29 00:20:21 +00:00
f0990fae4b
PermGen can be tweaked from the settings menu Groups are saved on change/exit Install target is no longer completely broken All the deplibs are now static Added notes dialog Fixed ini file format support (can save strings with newlines, tabs. UTF-8 is explicitly used!) Rename button now uses line breaks so it doesn't grow ever wider (Added a custom tool button subclass) There is now a CAT button. Meow.
28 lines
604 B
C++
28 lines
604 B
C++
#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();
|
|
}
|