diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index e43f59053d..24aa1804f2 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -230,7 +230,9 @@ public: #ifndef Q_CLANG_QDOC template explicit QProperty(Functor &&f, const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION, - typename std::enable_if_t> * = 0); + typename std::enable_if_t> * = 0) + : QProperty(QPropertyBinding(std::forward(f), location)) + {} #else template explicit QProperty(Functor &&f); @@ -357,15 +359,6 @@ private: mutable QtPrivate::QPropertyValueStorage d; }; -#ifndef Q_CLANG_QDOC -template -template -QProperty::QProperty(Functor &&f, const QPropertyBindingSourceLocation &location, - typename std::enable_if_t> *) - : QProperty(QPropertyBinding(std::forward(f), location)) -{} -#endif - namespace Qt { template QPropertyBinding makePropertyBinding(const QProperty &otherProperty,