mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
QT_VERSION <6.0
This commit is contained in:
parent
fa77b696d0
commit
e2c89c2a1a
37 changed files with 8 additions and 260 deletions
|
|
@ -24,11 +24,7 @@ void installNewTranslator()
|
|||
QString lang = SettingsCache::instance().getLang();
|
||||
|
||||
QString qtNameHint = "qt_" + lang;
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
QString qtTranslationPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
|
||||
#else
|
||||
QString qtTranslationPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||
#endif
|
||||
|
||||
bool qtTranslationLoaded = qtTranslator->load(qtNameHint, qtTranslationPath);
|
||||
if (!qtTranslationLoaded) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue