forked from qt-creator/qt-creator
QmlDesigner: Fix build for Qt5.14
Amends 59488d9606
.
Change-Id: I70fd3f962de5abb6254a406263df2ea61c7e9bcc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -1343,8 +1343,10 @@ void NodeInstanceServer::loadDummyContextObjectFile(const QFileInfo& qmlFileInfo
|
||||
|
||||
void NodeInstanceServer::setTranslationLanguage(const QString &language)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||
// if there exists an /i18n directory it sets default translators
|
||||
engine()->setUiLanguage(language);
|
||||
#endif
|
||||
static QPointer<MultiLanguage::Translator> multilanguageTranslator;
|
||||
if (!MultiLanguage::databaseFilePath().isEmpty()) {
|
||||
if (!multilanguageLink) {
|
||||
|
Reference in New Issue
Block a user