aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qml/qml/v8/qqmlbuiltinfunctions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
index 0e0bd5c164..d4e3b39752 100644
--- a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
+++ b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
@@ -1109,6 +1109,7 @@ QQmlComponent *QtObject::createComponent(const QUrl &url, QQmlComponent::Compila
return c;
}
+#if QT_CONFIG(translation)
QString QtObject::uiLanguage() const
{
if (const QJSEngine *e = jsEngine())
@@ -1128,6 +1129,7 @@ QBindable<QString> QtObject::uiLanguageBindable()
return QBindable<QString>(&QJSEnginePrivate::get(e)->uiLanguage);
return QBindable<QString>();
}
+#endif
#if QT_CONFIG(qml_locale)
/*!