summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-11-04 00:31:50 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-11-04 00:31:50 (GMT)
commit8caacf51667d4cf770b18a8b59e46f842861210e (patch)
tree8c2ef49b53252f25a1155ec095c6a7446932777c /src/corelib
parentdb3d38df589aac5eb8098a7ed74257b9ecd6b8a1 (diff)
downloadQt-8caacf51667d4cf770b18a8b59e46f842861210e.zip
Qt-8caacf51667d4cf770b18a8b59e46f842861210e.tar.gz
Qt-8caacf51667d4cf770b18a8b59e46f842861210e.tar.bz2
Implement internal support for property interceptors (used by declarative).
Reviewed-by: Kent Hansen Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qmetaobject.cpp5
1 files changed, 4 insertions, 1 deletions
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