2013-02-22 00:05:52 +05:30
|
|
|
#include "aboutdialog.h"
|
|
|
|
#include "ui_aboutdialog.h"
|
|
|
|
#include <QIcon>
|
2013-09-07 07:30:58 +05:30
|
|
|
#include <MultiMC.h>
|
2013-10-18 22:12:41 +05:30
|
|
|
#include "gui/platform.h"
|
2013-02-22 00:05:52 +05:30
|
|
|
|
|
|
|
AboutDialog::AboutDialog(QWidget *parent) :
|
2013-08-27 09:09:49 +05:30
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::AboutDialog)
|
2013-02-22 00:05:52 +05:30
|
|
|
{
|
2013-10-18 22:12:41 +05:30
|
|
|
MultiMCPlatform::fixWM_CLASS(this);
|
2013-08-27 09:09:49 +05:30
|
|
|
ui->setupUi(this);
|
2013-02-22 00:05:52 +05:30
|
|
|
|
2013-08-27 09:09:49 +05:30
|
|
|
ui->icon->setPixmap(QIcon(":/icons/multimc/scalable/apps/multimc.svg").pixmap(64));
|
2013-09-07 07:30:58 +05:30
|
|
|
ui->title->setText("MultiMC " + MMC->version().toString());
|
2013-08-27 09:09:49 +05:30
|
|
|
connect(ui->closeButton, SIGNAL(clicked()), SLOT(close()));
|
2013-02-22 00:05:52 +05:30
|
|
|
|
2013-09-07 07:30:58 +05:30
|
|
|
MMC->connect(ui->aboutQt, SIGNAL(clicked()), SLOT(aboutQt()));
|
2013-02-22 00:05:52 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
{
|
2013-08-27 09:09:49 +05:30
|
|
|
delete ui;
|
2013-02-22 00:05:52 +05:30
|
|
|
}
|