diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-07-14 11:47:04 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2021-07-19 15:15:32 +0200 |
commit | dff7aaf7d20435f2418e6bb50df2238afff9835f (patch) | |
tree | 3616357d6e6cf992200c2ee6d91c2a232abf5a4e /src/qml/debugger | |
parent | ab15dbdac277422e78a5ed241ce040ad5c369018 (diff) |
QQmlDebugServiceInterfaces: Fix build when qml_debug is disabled
Without the forward declaration, we don't know what
TranslationBindingInformation is in foundTranslationBinding(const
TranslationBindingInformation &).
Moreover, we not only need to check for the translation feature, but
also for the qml_debug feature before trying to use the
QQmlDebugTranslationService.
Pick-to: 6.2
Fixes: QTBUG-95162
Change-Id: I7bb100526a22d73637540729c51fa4cf1b148770
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/debugger')
-rw-r--r-- | src/qml/debugger/qqmldebugserviceinterfaces_p.h | 2 |
1 files changed, 2 insertions, 0 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: |