Credits This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument...
| 27 | // Credits |
| 28 | // This is a hack, but I can't think of a better way to do this easily without screwing with QTextDocument... |
| 29 | QString 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 <<a href='mailto:forkk@forkk.net'>forkk@forkk.net</a>></p>\n"; |
| 39 | stream << "<p>Petr Mrázek <<a href='mailto:peterix@gmail.com'>peterix@gmail.com</a>></p>\n"; |
| 40 | stream << "<p>Sky Welch <<a href='mailto:multimc@bunnies.io'>multimc@bunnies.io</a>></p>\n"; |
| 41 | stream << "<p>Jan (02JanDal) <<a href='mailto:02jandal@gmail.com'>02jandal@gmail.com</a>></p>\n"; |
| 42 | stream << "<p>RoboSky <<a href='https://twitter.com/RoboSky_'>@RoboSky_</a>></p>\n"; |
| 43 | stream << "<br />\n"; |
| 44 | |
| 45 | stream << "<h3>" << QObject::tr("With thanks to", "About Credits") << "</h3>\n"; |
| 46 | stream << "<p>Orochimarufan <<a href='mailto:orochimarufan.x3@gmail.com'>orochimarufan.x3@gmail.com</a>></p>\n"; |
| 47 | stream << "<p>TakSuyu <<a href='mailto:taksuyu@gmail.com'>taksuyu@gmail.com</a>></p>\n"; |
| 48 | stream << "<p>Kilobyte <<a href='mailto:stiepen22@gmx.de'>stiepen22@gmx.de</a>></p>\n"; |
| 49 | stream << "<p>Rootbear75 <<a href='https://twitter.com/rootbear75'>@rootbear75</a>></p>\n"; |
| 50 | stream << "<p>Zeker Zhayard <<a href='https://twitter.com/zeker_zhayard'>@Zeker_Zhayard</a>></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 | |
| 64 | QString getLicenseHtml() |
| 65 | { |
no test coverage detected