aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/debugger/qqmldebugserviceinterfaces_p.h2
-rw-r--r--src/qml/qml/qqmlbinding.cpp2
-rw-r--r--src/quick/items/qquicktext.cpp2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/debugger/qqmldebugserviceinterfaces_p.h b/src/qml/debugger/qqmldebugserviceinterfaces_p.h
index 02367d1984..5d58e4d2e0 100644
--- a/src/qml/debugger/qqmldebugserviceinterfaces_p.h
+++ b/src/qml/debugger/qqmldebugserviceinterfaces_p.h
@@ -69,6 +69,8 @@ class QQuickWindow;
#if !QT_CONFIG(qml_debug)
+class TranslationBindingInformation;
+
class QV4DebugService
{
public:
diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp
index 3212dc5604..62275c792e 100644
--- a/src/qml/qml/qqmlbinding.cpp
+++ b/src/qml/qml/qqmlbinding.cpp
@@ -448,7 +448,7 @@ QQmlBinding *QQmlBinding::createTranslationBinding(
b->setNotifyOnValueChanged(true);
b->QQmlJavaScriptExpression::setContext(ctxt);
b->setScopeObject(obj);
-#if QT_CONFIG(translation)
+#if QT_CONFIG(translation) && QT_CONFIG(qml_debug)
if (QQmlDebugTranslationService *service
= QQmlDebugConnector::service<QQmlDebugTranslationService>()) {
service->foundTranslationBinding({unit, binding, b->scopeObject(), ctxt});
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp
index 379fef7722..0f17af1975 100644
--- a/src/quick/items/qquicktext.cpp
+++ b/src/quick/items/qquicktext.cpp
@@ -1153,7 +1153,7 @@ QRectF QQuickTextPrivate::setupTextLayout(qreal *const baseline)
elideLayout->setFont(layout.font());
elideLayout->setTextOption(layout.textOption());
-#if QT_CONFIG(translation)
+#if QT_CONFIG(translation) && QT_CONFIG(qml_debug)
if (QQmlDebugTranslationService *service
= QQmlDebugConnector::service<QQmlDebugTranslationService>()) {
elideText = service->foundElidedText(q, layoutText, elideText);