Drop Qt5Compat (#4176)

This commit is contained in:
Seth Flynn
2025-11-27 16:32:40 -05:00
committed by GitHub
11 changed files with 20 additions and 23 deletions

View File

@@ -48,9 +48,12 @@ namespace {
QString getCreditsHtml()
{
QFile dataFile(":/documents/credits.html");
dataFile.open(QIODevice::ReadOnly);
if (!dataFile.open(QIODevice::ReadOnly)) {
qWarning() << "Failed to open file '" << dataFile.fileName() << "' for reading!";
return {};
}
QString fileContent = QString::fromUtf8(dataFile.readAll());
dataFile.close();
return fileContent.arg(QObject::tr("%1 Developers").arg(BuildConfig.LAUNCHER_DISPLAYNAME), QObject::tr("MultiMC Developers"),
QObject::tr("With special thanks to"));