From 0d6bff7d0f3dc04839deaa88300482c9e923535d 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 Change-Id: Ia79e5e616a1c35da299c00766e960789c7b60695 Reviewed-by: Volker Hilsheimer Reviewed-by: Marc Mutz (cherry picked from commit a0110f381907add3c8acabfa58c4b9357439fa39) Reviewed-by: Qt Cherry-pick Bot --- 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 df8fc6e9edf..adf59111dd7 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"