qproperty.h: Make ctors explicit

Addresses comments from API review.

Pick-to: 6.5
Change-Id: I859079cc918aa67dffe0c780f6d0b9712652bb4a
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Fabian Kosmale 2023-01-17 13:44:29 +01:00
parent 56d72d36bf
commit aaa198cb5c

View File

@ -663,8 +663,8 @@ protected:
: data(d), iface(i)
{}
Q_CORE_EXPORT QUntypedBindable(QObject* obj, const QMetaProperty &property, const QtPrivate::QBindableInterface *i);
Q_CORE_EXPORT QUntypedBindable(QObject* obj, const char* property, const QtPrivate::QBindableInterface *i);
Q_CORE_EXPORT explicit QUntypedBindable(QObject* obj, const QMetaProperty &property, const QtPrivate::QBindableInterface *i);
Q_CORE_EXPORT explicit QUntypedBindable(QObject* obj, const char* property, const QtPrivate::QBindableInterface *i);
public:
constexpr QUntypedBindable() = default;
@ -802,10 +802,10 @@ public:
}
}
QBindable(QObject *obj, const QMetaProperty &property)
explicit QBindable(QObject *obj, const QMetaProperty &property)
: QUntypedBindable(obj, property, &QtPrivate::PropertyAdaptorSlotObjectHelpers::iface<T>) {}
QBindable(QObject *obj, const char *property)
explicit QBindable(QObject *obj, const char *property)
: QUntypedBindable(obj, property, &QtPrivate::PropertyAdaptorSlotObjectHelpers::iface<T>) {}
QPropertyBinding<T> makeBinding(const QPropertyBindingSourceLocation &location = QT_PROPERTY_DEFAULT_BINDING_LOCATION) const