MCPcopy Create free account
hub / github.com/MultiMC/Launcher / getCreditsHtml

Function getCreditsHtml

launcher/ui/dialogs/AboutDialog.cpp:29–62  ·  view source on GitHub ↗

Credits This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument...

Source from the content-addressed store, hash-verified

27// Credits
28// This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument...
29QString getCreditsHtml(QStringList patrons)
30{
31 QString patronsHeading = QObject::tr("Patrons", "About Credits");
32 QString output;
33 QTextStream stream(&output);
34 stream.setCodec(QTextCodec::codecForName("UTF-8"));
35 stream << "<center>\n";
36 // TODO: possibly retrieve from git history at build time?
37 stream << "<h3>" << QObject::tr("Developers", "About Credits") << "</h3>\n";
38 stream << "<p>Andrew Okin &lt;<a href='mailto:forkk@forkk.net'>forkk@forkk.net</a>&gt;</p>\n";
39 stream << "<p>Petr Mrázek &lt;<a href='mailto:peterix@gmail.com'>peterix@gmail.com</a>&gt;</p>\n";
40 stream << "<p>Sky Welch &lt;<a href='mailto:multimc@bunnies.io'>multimc@bunnies.io</a>&gt;</p>\n";
41 stream << "<p>Jan (02JanDal) &lt;<a href='mailto:02jandal@gmail.com'>02jandal@gmail.com</a>&gt;</p>\n";
42 stream << "<p>RoboSky &lt;<a href='https://twitter.com/RoboSky_'>@RoboSky_</a>&gt;</p>\n";
43 stream << "<br />\n";
44
45 stream << "<h3>" << QObject::tr("With thanks to", "About Credits") << "</h3>\n";
46 stream << "<p>Orochimarufan &lt;<a href='mailto:orochimarufan.x3@gmail.com'>orochimarufan.x3@gmail.com</a>&gt;</p>\n";
47 stream << "<p>TakSuyu &lt;<a href='mailto:taksuyu@gmail.com'>taksuyu@gmail.com</a>&gt;</p>\n";
48 stream << "<p>Kilobyte &lt;<a href='mailto:stiepen22@gmx.de'>stiepen22@gmx.de</a>&gt;</p>\n";
49 stream << "<p>Rootbear75 &lt;<a href='https://twitter.com/rootbear75'>@rootbear75</a>&gt;</p>\n";
50 stream << "<p>Zeker Zhayard &lt;<a href='https://twitter.com/zeker_zhayard'>@Zeker_Zhayard</a>&gt;</p>\n";
51 stream << "<br />\n";
52
53 if(!patrons.isEmpty()) {
54 stream << "<h3>" << QObject::tr("Patrons", "About Credits") << "</h3>\n";
55 for (QString patron : patrons)
56 {
57 stream << "<p>" << patron << "</p>\n";
58 }
59 }
60 stream << "</center>\n";
61 return output;
62}
63
64QString getLicenseHtml()
65{

Callers 2

AboutDialogMethod · 0.85
patronListLoadedMethod · 0.85

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected