From f5f7f78766d62b7192b98b96bbd68dab1961e54e Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 4 Nov 2021 11:51:50 +0100 Subject: [PATCH] QObject: don't #include qproperty.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The qobject.h header needs QBindingStorage in-size and QBindable in-name-only. The former was moved to its own header in a previous commit, which we include now, while the latter can just be forward-declared. This allows dropping the qproperty.h include from qobject.h. [ChangeLog][Potentially Source-Incompatible Changes] The qobject.h header no longer implicitly includes qproperty.h. If your code depends on the transitive include, explicitly include where needed. Task-number: QTBUG-97601 Pick-to: 6.2 Change-Id: I8d6320f5978e20dfc394d2b1e49f626b99529c37 Reviewed-by: Qt CI Bot Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Lars Knoll Reviewed-by: Fabian Kosmale --- src/corelib/kernel/qobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/kernel/qobject.h b/src/corelib/kernel/qobject.h index e75cf3217ec..8a45e73b0e9 100644 --- a/src/corelib/kernel/qobject.h +++ b/src/corelib/kernel/qobject.h @@ -54,7 +54,7 @@ #include #include -#include +#include #if __has_include() # include @@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE -class QBindingStorage; +template class QBindable; class QEvent; class QTimerEvent; class QChildEvent;