summaryrefslogtreecommitdiffstats
path: root/gui/aboutdialog.cpp
diff options
context:
space:
mode:
authorOrochimarufan <orochimarufan.x3@gmail.com>2013-02-21 19:35:52 +0100
committerOrochimarufan <orochimarufan.x3@gmail.com>2013-02-21 19:35:52 +0100
commit576e979df4a54df9bf5ffeae3559f488b3045268 (patch)
treede5042847ce0189e2c982daa84e83f2a04cf923c /gui/aboutdialog.cpp
parent519f66efeee2a28aab89ae70a1f63fecb6de1aa1 (diff)
downloadMultiMC-576e979df4a54df9bf5ffeae3559f488b3045268.tar
MultiMC-576e979df4a54df9bf5ffeae3559f488b3045268.tar.gz
MultiMC-576e979df4a54df9bf5ffeae3559f488b3045268.tar.lz
MultiMC-576e979df4a54df9bf5ffeae3559f488b3045268.tar.xz
MultiMC-576e979df4a54df9bf5ffeae3559f488b3045268.zip
Implement About Dialog
Prepared XDG icon theme in :/icons/multimc. will only be usefull as soon as Qt decides to support custom fallback themes. use the resources directly for now.
Diffstat (limited to 'gui/aboutdialog.cpp')
-rw-r--r--gui/aboutdialog.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/gui/aboutdialog.cpp b/gui/aboutdialog.cpp
new file mode 100644
index 00000000..876f3044
--- /dev/null
+++ b/gui/aboutdialog.cpp
@@ -0,0 +1,23 @@
+#include "aboutdialog.h"
+#include "ui_aboutdialog.h"
+
+#include <QIcon>
+#include <QApplication>
+
+AboutDialog::AboutDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::AboutDialog)
+{
+ ui->setupUi(this);
+
+ ui->icon->setPixmap(QIcon(":/icons/multimc/scalable/apps/multimc.svg").pixmap(64));
+
+ connect(ui->closeButton, SIGNAL(clicked()), SLOT(close()));
+
+ QApplication::instance()->connect(ui->aboutQt, SIGNAL(clicked()), SLOT(aboutQt()));
+}
+
+AboutDialog::~AboutDialog()
+{
+ delete ui;
+}