From a0110f381907add3c8acabfa58c4b9357439fa39 Mon Sep 17 00:00:00 2001 From: Alexey Rochev Date: Sat, 15 Oct 2022 02:42:51 +0300 Subject: [PATCH] Fix build with -no-feature-settings Pick-to: 6.4 Change-Id: Ia79e5e616a1c35da299c00766e960789c7b60695 Reviewed-by: Volker Hilsheimer Reviewed-by: Marc Mutz --- src/corelib/compat/removed_api.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index ddaa6ec61a8..795fa5f5c09 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -194,6 +194,8 @@ void QObject::setObjectName(const QString &name) #include "qlocale.h" // uses QT_CORE_INLINE_SINCE +#if QT_CONFIG(settings) + #include "qsettings.h" void QSettings::beginGroup(const QString &prefix) @@ -236,6 +238,7 @@ QVariant QSettings::value(const QString &key) const return value(qToAnyStringViewIgnoringNull(key)); } +#endif // QT_CONFIG(settings) #include "qversionnumber.h"