2013-02-21 18:35:52 +00:00
|
|
|
#include "aboutdialog.h"
|
|
|
|
#include "ui_aboutdialog.h"
|
2013-08-27 04:39:49 +01:00
|
|
|
#include <AppVersion.h>
|
2013-02-21 18:35:52 +00:00
|
|
|
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
2013-08-27 04:39:49 +01:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
2013-02-21 18:35:52 +00:00
|
|
|
{
|
2013-08-27 04:39:49 +01:00
|
|
|
ui->setupUi(this);
|
2013-02-21 18:35:52 +00:00
|
|
|
|
2013-08-27 04:39:49 +01:00
|
|
|
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()));
|
2013-02-21 18:35:52 +00:00
|
|
|
|
2013-08-27 04:39:49 +01:00
|
|
|
QApplication::instance()->connect(ui->aboutQt, SIGNAL(clicked()), SLOT(aboutQt()));
|
2013-02-21 18:35:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
2013-08-27 04:39:49 +01:00
|
|
|
delete ui;
|
2013-02-21 18:35:52 +00:00
|
|
|
}
|