Apply clang-format

This commit is contained in:
Martchus 2020-10-05 18:37:42 +02:00
parent 15c884153a
commit 7d78fb7236
2 changed files with 6 additions and 5 deletions

View File

@ -121,13 +121,14 @@ void loadQtTranslationFile(initializer_list<QString> repositoryNames, const QStr
QString path;
if ((!additionalTranslationFilePath().isEmpty() && qtTranslator->load(fileName, path = additionalTranslationFilePath()))
|| qtTranslator->load(fileName, path =
|| qtTranslator->load(fileName,
path =
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QLibraryInfo::location(QLibraryInfo::TranslationsPath)
QLibraryInfo::location(QLibraryInfo::TranslationsPath)
#else
QLibraryInfo::path(QLibraryInfo::TranslationsPath)
QLibraryInfo::path(QLibraryInfo::TranslationsPath)
#endif
)
)
|| qtTranslator->load(fileName, path = QStringLiteral("../share/qt/translations"))
|| qtTranslator->load(fileName, path = QStringLiteral(":/translations"))) {
QCoreApplication::installTranslator(qtTranslator);

View File

@ -3,8 +3,8 @@
#include "../global.h"
#include <QtGlobal>
#include <QtContainerFwd>
#include <QtGlobal>
#include <initializer_list>