🐛 fix: qCFatal is only available since 6.5

This commit is contained in:
2026-03-01 00:10:10 +01:00
parent 9c7e118b24
commit 43ad900245
+4
View File
@@ -122,7 +122,11 @@ void WallReel::Core::Logger::critical(const QString& sender, const QString& msg)
}
void WallReel::Core::Logger::fatal(const QString& sender, const QString& msg) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
qCFatal(logMain) << QString("[%1] %2").arg(sender, msg);
#else
qCCritical(logMain) << QString("[%1] %2").arg(sender, msg);
#endif
}
// No fatal because qCFatal does not exist before Qt 6.5