#include "panda_qt/about_window.hpp" #include #include #include #include // Based on https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/DolphinQt/AboutDialog.cpp AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) { resize(200, 200); setWindowTitle(tr("About Panda3DS")); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); const QString text = QStringLiteral(R"(

Panda3DS

%ABOUT_PANDA3DS%
%SUPPORT%

%AUTHORS%

)") .replace(QStringLiteral("%ABOUT_PANDA3DS%"), tr("Panda3DS is a free and open source Nintendo 3DS emulator, for Windows, MacOS and Linux")) .replace(QStringLiteral("%SUPPORT%"), tr("Visit panda3ds.com for help with Panda3DS and links to our official support sites.")) .replace( QStringLiteral("%AUTHORS%"), tr("Panda3DS is developed by volunteers in their spare time. Below is a list of some of these" " volunteers who've agreed to be listed here, in no particular order.
If you think you should be " "listed here too, please inform us

" "- Peach (wheremyfoodat)
" "- noumidev
" "- liuk707
" "- Wunk
" "- marysaka
" "- Sky
" "- merryhime
" "- TGP17
") ); QLabel* textLabel = new QLabel(text); textLabel->setTextInteractionFlags(Qt::TextBrowserInteraction); textLabel->setOpenExternalLinks(true); QLabel* logo = new QLabel(); logo->setPixmap(QPixmap(":/docs/img/rstarstruck_icon.png")); logo->setContentsMargins(30, 0, 30, 0); QVBoxLayout* mainLayout = new QVBoxLayout; QHBoxLayout* hLayout = new QHBoxLayout; setLayout(mainLayout); mainLayout->addLayout(hLayout); hLayout->setAlignment(Qt::AlignLeft); hLayout->addWidget(logo); hLayout->addWidget(textLabel); }