From 889250b7201d59410edce44e2eac4e2e9b2fdd62 Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Sat, 11 Jul 2020 17:26:08 -0400 Subject: [PATCH] Updated About Window. --- src/drivers/Qt/AboutWindow.cpp | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/drivers/Qt/AboutWindow.cpp b/src/drivers/Qt/AboutWindow.cpp index 34d6520c..1631ef22 100644 --- a/src/drivers/Qt/AboutWindow.cpp +++ b/src/drivers/Qt/AboutWindow.cpp @@ -7,21 +7,43 @@ #include #include +#include #include //#include "Qt/icon.xpm" #include "Qt/AboutWindow.h" #include "../../version.h" +static const char *Authors[] = { + "Linux/SDL Developers:", + "\t Lukas Sabota //punkrockguy318", "\t Soules", "\t Bryan Cain", "\t radsaq", + "\t Shinydoofy", + "FceuX 2.0 Developers:", + "\t SP", "\t zeromus", "\t adelikat", "\t caH4e3", "\t qfox", + "\t Luke Gustafson", "\t _mz", "\t UncombedCoconut", "\t DwEdit", "\t AnS", + "\t rainwarrior", "\t feos", + "Pre 2.0 Guys:", + "\t Bero", "\t Xodnizel", "\t Aaron Oneal", "\t Joe Nahmias", + "\t Paul Kuliniewicz", "\t Quietust", "\t Ben Parnell", + "\t Parasyte & bbitmaster", + "\t blip & nitsuja", + "Included components:", + "\t Mitsutaka Okazaki - YM2413 emulator", + "\t Andrea Mazzoleni - Scale2x/Scale3x scalers", + "\t Gilles Vollant - unzip.c PKZIP fileio", + NULL +}; //---------------------------------------------------------------------------- AboutWindow::AboutWindow(QWidget *parent) : QDialog( parent ) { + int i; QVBoxLayout *mainLayout; QHBoxLayout *hbox1; //QPixmap pm( icon_xpm ); QPixmap pm(":fceux.png"); QPixmap pm2; QLabel *lbl; + QTextEdit *credits; pm2 = pm.scaled( 64, 64 ); @@ -83,6 +105,19 @@ AboutWindow::AboutWindow(QWidget *parent) mainLayout->addLayout( hbox1 ); + credits = new QTextEdit(); + + i=0; + while ( Authors[i] != NULL ) + { + credits->insertPlainText( Authors[i] ); i++; + credits->insertPlainText( "\n"); + } + credits->moveCursor(QTextCursor::Start); + credits->setReadOnly(true); + + mainLayout->addWidget( credits ); + setLayout( mainLayout ); } //----------------------------------------------------------------------------