From 8caacf51667d4cf770b18a8b59e46f842861210e Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Wed, 4 Nov 2009 10:31:50 +1000 Subject: Implement internal support for property interceptors (used by declarative). Reviewed-by: Kent Hansen Reviewed-by: Aaron Kennedy --- src/corelib/kernel/qmetaobject.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp index 71afc5b..6e6da19 100644 --- a/src/corelib/kernel/qmetaobject.cpp +++ b/src/corelib/kernel/qmetaobject.cpp @@ -2237,7 +2237,10 @@ bool QMetaProperty::write(QObject *object, const QVariant &value) const // -1 (unchanged): normal qt_metacall, result stored in argv[0] // changed: result stored directly in value, return the value of status int status = -1; - void *argv[] = { 0, &v, &status }; + // the flags variable is used by the declarative module to implement + // interception of property writes. + int flags = 0; + void *argv[] = { 0, &v, &status, &flags }; if (t == QVariant::LastType) argv[0] = &v; else -- cgit v0.12