Skip to content

Commit

Permalink
Fixed compilation issue under QT5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Dec 1, 2023
1 parent 0eae5b7 commit b54a993
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ static void setupTranslator(QApplication* app,
QTranslator* translator = new QTranslator(app);
if ( translator->load(translationFile) )
{
qCDebug(runtime) << "Loaded successfully" << translator->filePath();
qCDebug(runtime) << "Loaded successfully"
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
<< translator->filePath()
#endif
;
app->installTranslator(translator);
return;
}
Expand Down Expand Up @@ -106,7 +110,11 @@ static void setupTranslator(QApplication* app,
QTranslator* translator = new QTranslator(app);
if ( translator->load(QStringLiteral("i18n%1qlog_%2").arg(QDir::separator(), localeLang), folder) )
{
qCDebug(runtime) << "Loaded successfully" << translator->filePath();
qCDebug(runtime) << "Loaded successfully"
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
<< translator->filePath()
#endif
;
app->installTranslator(translator);
return;
}
Expand All @@ -118,7 +126,11 @@ static void setupTranslator(QApplication* app,
QTranslator* translator = new QTranslator(app);
if ( translator->load(":/i18n/qlog_" + localeLang) )
{
qCDebug(runtime) << "Loaded successfully" << translator->filePath();
qCDebug(runtime) << "Loaded successfully"
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
<< translator->filePath()
#endif
;
app->installTranslator(translator);
return;
}
Expand Down

0 comments on commit b54a993

Please sign in to comment.