dialog(new QDialog());
+ QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
+ QTextEdit *textEdit = new QTextEdit(dialog.data());
+
+ connect(buttonBox, SIGNAL(accepted()), dialog.data(), SLOT(accept()));
+ connect(buttonBox, SIGNAL(rejected()), dialog.data(), SLOT(reject()));
+
+ dialog->setWindowTitle(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_HELP_ABOUT_CONTRIBUTORS));
+ dialog->setLayout(new QVBoxLayout());
+
+ dialog->layout()->addWidget(textEdit);
+
+ dialog->layout()->addItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum));
+ dialog->layout()->addWidget(buttonBox);
+
+ textEdit->setReadOnly(true);
+ textEdit->setHtml(QString("") + retroarch_contributors_list + "
");
+
+ dialog->resize(480, 640);
+ dialog->exec();
+}
+
void MainWindow::showAbout()
{
QScopedPointer dialog(new QDialog());
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
QString text = QString("RetroArch ") + PACKAGE_VERSION +
"
" + "www.libretro.com"
- "
" + "www.retroarch.com";
+ "
" + "www.retroarch.com"
+ "
";
QLabel *label = new QLabel(text, dialog.data());
QPixmap pix = getInvader();
- QLabel *pixLabel = new QLabel();
+ QLabel *pixLabel = new QLabel(dialog.data());
+ QPushButton *contributorsPushButton = new QPushButton(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_HELP_ABOUT_CONTRIBUTORS), dialog.data());
+
+ connect(contributorsPushButton, SIGNAL(clicked()), this, SLOT(onContributorsClicked()));
+ connect(buttonBox, SIGNAL(accepted()), dialog.data(), SLOT(accept()));
+ connect(buttonBox, SIGNAL(rejected()), dialog.data(), SLOT(reject()));
label->setTextFormat(Qt::RichText);
label->setAlignment(Qt::AlignCenter);
@@ -4661,17 +4693,14 @@ void MainWindow::showAbout()
label->setOpenExternalLinks(true);
pixLabel->setAlignment(Qt::AlignCenter);
-
pixLabel->setPixmap(pix);
- connect(buttonBox, SIGNAL(accepted()), dialog.data(), SLOT(accept()));
- connect(buttonBox, SIGNAL(rejected()), dialog.data(), SLOT(reject()));
-
dialog->setWindowTitle(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_HELP_ABOUT));
dialog->setLayout(new QVBoxLayout());
dialog->layout()->addWidget(pixLabel);
dialog->layout()->addWidget(label);
+ dialog->layout()->addWidget(contributorsPushButton);
dialog->layout()->addItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding));
dialog->layout()->addWidget(buttonBox);
diff --git a/ui/drivers/ui_qt.h b/ui/drivers/ui_qt.h
index 0b7d554f3f..628ae62d31 100644
--- a/ui/drivers/ui_qt.h
+++ b/ui/drivers/ui_qt.h
@@ -440,6 +440,7 @@ private slots:
void onUpdateDownloadReadyRead();
void onUpdateDownloadCanceled();
void onShowErrorMessage(QString msg);
+ void onContributorsClicked();
int onExtractArchive(QString path);
private: