diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-06-29 15:43:39 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-30 20:52:37 +0000 |
commit | 729b750f5fd6d7edaafd7e79327b7fabdafbe371 (patch) | |
tree | 4622d88b7b02eaeccfb30d9874ec1e8b37e12699 | |
parent | 10bed9af91b38e177f5dd38302db4b37db653938 (diff) | |
download | qtapplicationmanager-729b750f5fd6d7edaafd7e79327b7fabdafbe371.tar.gz |
Allow compiling against Qt < 6.4
Change-Id: I6b3203e00c7a7b22b1aa7839bbe94a987bc6fa98
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
(cherry picked from commit b6eca2f33af9b3b1721d367c0fdea60f18cb33d7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/shared-main-lib/sharedmain.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared-main-lib/sharedmain.cpp b/src/shared-main-lib/sharedmain.cpp index ea28976d..d87857e9 100644 --- a/src/shared-main-lib/sharedmain.cpp +++ b/src/shared-main-lib/sharedmain.cpp @@ -121,7 +121,11 @@ void SharedMain::setupQmlDebugging(bool qmlDebugging) if (hasJSDebugArg || qmlDebugging) { #if !defined(QT_NO_QML_DEBUGGER) +#if QT_VERSION < QT_VERSION_CHECK(6, 4, 0) + static auto debuggingEnabler = std::make_unique<QQmlDebuggingEnabler>(true); +#else QQmlDebuggingEnabler::enableDebugging(true); +#endif if (!QLoggingCategory::defaultCategory()->isDebugEnabled()) { qCCritical(LogRuntime) << "The default 'debug' logging category was disabled. " "Re-enabling it for the QML Debugger interface to work correctly."; |