From ad32ac5b4f05c9eed1fb7a93ee7947050d840a19 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 22 Aug 2020 17:21:36 +0200 Subject: Make bindings introspectable through moc Add a new BINDABLE declaration to the Q_PROPERTY() macro that tells moc where to find the QBindable for the property. Add a QUntypedBindable base class to QBindable that gives access to generic functionality and checks argument compatibility at runtime. QBindable will still do static checking at compile time. Add QMetaProperty::isBindable() and QMetaProperty::bindable() to be able to dynamically access the binding functionality. Change-Id: Ic7b08ae2cde83fd43e627d813a886e1de01fa3dc Reviewed-by: Fabian Kosmale --- src/corelib/kernel/qmetaobject_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/kernel/qmetaobject_p.h') diff --git a/src/corelib/kernel/qmetaobject_p.h b/src/corelib/kernel/qmetaobject_p.h index 0d6cd7396d..d205034d77 100644 --- a/src/corelib/kernel/qmetaobject_p.h +++ b/src/corelib/kernel/qmetaobject_p.h @@ -81,7 +81,7 @@ enum PropertyFlags { Stored = 0x00010000, User = 0x00100000, Required = 0x01000000, - IsQProperty = 0x02000000 + Bindable = 0x02000000 }; enum MethodFlags { -- cgit v1.2.3