qproperty.h: Make ctors explicit
Addresses comments from API review. Change-Id: I859079cc918aa67dffe0c780f6d0b9712652bb4a Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit aaa198cb5cd8bfcf366a09982a19c0c1c8d1f7a3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
157126fa57
commit
20a69a0c84
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user