diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-25 22:48:41 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-25 22:48:41 +0200 |
commit | f0990fae4bc6e54837764c0ded1461b9f1770401 (patch) | |
tree | 619dd1c5007d902e2d349bb42e3f66454596713a /gui/EditNotesDialog.cpp | |
parent | d884f849d60db44f05a6a6b22f4ffcf520900389 (diff) | |
download | MultiMC-f0990fae4bc6e54837764c0ded1461b9f1770401.tar MultiMC-f0990fae4bc6e54837764c0ded1461b9f1770401.tar.gz MultiMC-f0990fae4bc6e54837764c0ded1461b9f1770401.tar.lz MultiMC-f0990fae4bc6e54837764c0ded1461b9f1770401.tar.xz MultiMC-f0990fae4bc6e54837764c0ded1461b9f1770401.zip |
Many improvements
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.
Diffstat (limited to 'gui/EditNotesDialog.cpp')
-rw-r--r-- | gui/EditNotesDialog.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gui/EditNotesDialog.cpp b/gui/EditNotesDialog.cpp new file mode 100644 index 00000000..6cc389f6 --- /dev/null +++ b/gui/EditNotesDialog.cpp @@ -0,0 +1,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(); +} |