diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index 54df12fbfea..0373867a661 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -263,8 +263,7 @@ public: QPropertyObserver &operator=(QPropertyObserver &&other) noexcept; ~QPropertyObserver(); - template >> + template = true> void setSource(const Property &property) { setSource(property.bindingData()); } void setSource(const QtPrivate::QPropertyBindingData &property); @@ -303,8 +302,7 @@ public: { } - template >> + template = true> Q_NODISCARD_CTOR QPropertyChangeHandler(const Property &property, Functor handler) : QPropertyObserver([](QPropertyObserver *self, QUntypedPropertyData *) { @@ -335,7 +333,7 @@ public: } template >> + QtPrivate::IsUntypedPropertyData = true> Q_NODISCARD_CTOR QPropertyNotifier(const Property &property, Functor handler) : QPropertyObserver([](QPropertyObserver *self, QUntypedPropertyData *) { @@ -909,8 +907,7 @@ public: iface->setObserver(aliasedProperty(), this); } - template >> + template = true> QPropertyAlias(Property *property) : QPropertyObserver(property), iface(&QtPrivate::QBindableInterfaceForProperty::iface) diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h index fa8fe04d5d0..28cc04ff9d5 100644 --- a/src/corelib/kernel/qpropertyprivate.h +++ b/src/corelib/kernel/qpropertyprivate.h @@ -124,16 +124,13 @@ struct QPropertyObserverPointer; class QUntypedPropertyData { -public: -#if QT_DEPRECATED_SINCE(6, 8) - // sentinel to check whether a class inherits QUntypedPropertyData - struct QT_DEPRECATED_VERSION_X_6_8("Use std::is_base_of instead.") - InheritsQUntypedPropertyData - { - }; -#endif }; +namespace QtPrivate { +template +using IsUntypedPropertyData = std::enable_if_t, bool>; +} + template class QPropertyData;