Credits This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument...
| 63 | // Credits |
| 64 | // This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument... |
| 65 | QString getCreditsHtml() |
| 66 | { |
| 67 | QString output; |
| 68 | QTextStream stream(&output); |
| 69 | #if QT_VERSION <= QT_VERSION_CHECK(6, 0, 0) |
| 70 | stream.setCodec(QTextCodec::codecForName("UTF-8")); |
| 71 | #endif |
| 72 | stream << "<center>\n"; |
| 73 | |
| 74 | //: %1 is the name of the launcher, determined at build time, e.g. "Prism Launcher Developers" |
| 75 | stream << "<h3>" << QObject::tr("%1 Developers", "About Credits").arg(BuildConfig.LAUNCHER_DISPLAYNAME) << "</h3>\n"; |
| 76 | stream << QString("<p>Sefa Eyeoglu (Scrumplex) %1</p>\n").arg(getWebsite("https://scrumplex.net")); |
| 77 | stream << QString("<p>d-513 %1</p>\n").arg(getGitHub("d-513")); |
| 78 | stream << QString("<p>txtsd %1</p>\n").arg(getWebsite("https://ihavea.quest")); |
| 79 | stream << QString("<p>timoreo %1</p>\n").arg(getGitHub("timoreo22")); |
| 80 | stream << QString("<p>ZekeZ %1</p>\n").arg(getGitHub("ZekeZDev")); |
| 81 | stream << QString("<p>cozyGalvinism %1</p>\n").arg(getGitHub("cozyGalvinism")); |
| 82 | stream << QString("<p>DioEgizio %1</p>\n").arg(getGitHub("DioEgizio")); |
| 83 | stream << QString("<p>flowln %1</p>\n").arg(getGitHub("flowln")); |
| 84 | stream << QString("<p>ViRb3 %1</p>\n").arg(getGitHub("ViRb3")); |
| 85 | stream << QString("<p>Rachel Powers (Ryex) %1</p>\n").arg(getGitHub("Ryex")); |
| 86 | stream << QString("<p>TayouVR %1</p>\n").arg(getGitHub("TayouVR")); |
| 87 | stream << QString("<p>TheKodeToad %1</p>\n").arg(getGitHub("TheKodeToad")); |
| 88 | stream << QString("<p>getchoo %1</p>\n").arg(getGitHub("getchoo")); |
| 89 | stream << QString("<p>Alexandru Tripon (Trial97) %1</p>\n").arg(getGitHub("Trial97")); |
| 90 | stream << "<br />\n"; |
| 91 | |
| 92 | // TODO: possibly retrieve from git history at build time? |
| 93 | //: %1 is the name of the launcher, determined at build time, e.g. "Prism Launcher Developers" |
| 94 | stream << "<h3>" << QObject::tr("%1 Developers", "About Credits").arg("MultiMC") << "</h3>\n"; |
| 95 | stream << "<p>Andrew Okin <<a href='mailto:forkk@forkk.net'>forkk@forkk.net</a>></p>\n"; |
| 96 | stream << QString("<p>Petr Mrázek <<a href='mailto:peterix@gmail.com'>peterix@gmail.com</a>></p>\n"); |
| 97 | stream << "<p>Sky Welch <<a href='mailto:multimc@bunnies.io'>multimc@bunnies.io</a>></p>\n"; |
| 98 | stream << "<p>Jan (02JanDal) <<a href='mailto:02jandal@gmail.com'>02jandal@gmail.com</a>></p>\n"; |
| 99 | stream << "<p>RoboSky <<a href='https://twitter.com/RoboSky_'>@RoboSky_</a>></p>\n"; |
| 100 | stream << "<br />\n"; |
| 101 | |
| 102 | stream << "<h3>" << QObject::tr("With thanks to", "About Credits") << "</h3>\n"; |
| 103 | stream << QString("<p>Boba %1</p>\n").arg(getWebsite("https://bobaonline.neocities.org/")); |
| 104 | stream << QString("<p>AutiOne %1</p>\n").arg(getWebsite("https://auti.one/")); |
| 105 | stream << QString("<p>Fulmine %1</p>\n").arg(getWebsite("https://fulmine.xyz/")); |
| 106 | stream << QString("<p>ely %1</p>\n").arg(getGitHub("elyrodso")); |
| 107 | stream << QString("<p>gon sawa %1</p>\n").arg(getGitHub("gonsawa")); |
| 108 | stream << QString("<p>Pankakes</p>\n"); |
| 109 | stream << QString("<p>tobimori %1</p>\n").arg(getGitHub("tobimori")); |
| 110 | stream << "<p>Orochimarufan <<a href='mailto:orochimarufan.x3@gmail.com'>orochimarufan.x3@gmail.com</a>></p>\n"; |
| 111 | stream << "<p>TakSuyu <<a href='mailto:taksuyu@gmail.com'>taksuyu@gmail.com</a>></p>\n"; |
| 112 | stream << "<p>Kilobyte <<a href='mailto:stiepen22@gmx.de'>stiepen22@gmx.de</a>></p>\n"; |
| 113 | stream << "<p>Rootbear75 <<a href='https://twitter.com/rootbear75'>@rootbear75</a>></p>\n"; |
| 114 | stream << "<p>Zeker Zhayard <<a href='https://twitter.com/zeker_zhayard'>@Zeker_Zhayard</a>></p>\n"; |
| 115 | stream << "<p>Everyone who helped establish our branding!</p>\n"; |
| 116 | stream |
| 117 | << "<p>And everyone else who <a href='https://github.com/PrismLauncher/PrismLauncher/graphs/contributors'>contributed</a>!</p>\n"; |
| 118 | stream << "<br />\n"; |
| 119 | |
| 120 | stream << "</center>\n"; |
| 121 | return output; |
| 122 | } |
no test coverage detected