diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-27 05:39:49 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-27 05:39:49 +0200 |
commit | 5573ed52e8b68a54330cfee21b853da53d079078 (patch) | |
tree | 10eebd4ac4804550441ccc2a591ed00640adb75f /gui/aboutdialog.cpp | |
parent | e6999b3b62c5b765eff1736477a052f1cfeffd19 (diff) | |
download | MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar.gz MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar.lz MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.tar.xz MultiMC-5573ed52e8b68a54330cfee21b853da53d079078.zip |
Add/remove/drag&drop for the icon picker.
Diffstat (limited to 'gui/aboutdialog.cpp')
-rw-r--r-- | gui/aboutdialog.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gui/aboutdialog.cpp b/gui/aboutdialog.cpp index 876f3044..873cc175 100644 --- a/gui/aboutdialog.cpp +++ b/gui/aboutdialog.cpp @@ -1,23 +1,24 @@ #include "aboutdialog.h" #include "ui_aboutdialog.h" +#include <AppVersion.h> #include <QIcon> #include <QApplication> AboutDialog::AboutDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::AboutDialog) + QDialog(parent), + ui(new Ui::AboutDialog) { - ui->setupUi(this); + ui->setupUi(this); - ui->icon->setPixmap(QIcon(":/icons/multimc/scalable/apps/multimc.svg").pixmap(64)); + ui->icon->setPixmap(QIcon(":/icons/multimc/scalable/apps/multimc.svg").pixmap(64)); + ui->title->setText("MultiMC " + AppVersion::current.toString()); + connect(ui->closeButton, SIGNAL(clicked()), SLOT(close())); - connect(ui->closeButton, SIGNAL(clicked()), SLOT(close())); - - QApplication::instance()->connect(ui->aboutQt, SIGNAL(clicked()), SLOT(aboutQt())); + QApplication::instance()->connect(ui->aboutQt, SIGNAL(clicked()), SLOT(aboutQt())); } AboutDialog::~AboutDialog() { - delete ui; + delete ui; } |