summaryrefslogtreecommitdiffstats
path: root/gui/aboutdialog.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-27 05:39:49 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-27 05:39:49 +0200
commit5573ed52e8b68a54330cfee21b853da53d079078 (patch)
tree10eebd4ac4804550441ccc2a591ed00640adb75f /gui/aboutdialog.cpp
parente6999b3b62c5b765eff1736477a052f1cfeffd19 (diff)
downloadMultiMC-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.cpp17
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;
}