aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compileddata_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-13 16:39:00 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 14:26:23 +0200
commitd071acf7ff4573cdf7dbea801f40375611243551 (patch)
treeec34f84d8d795b2996da63e74183eba93fff4ee3 /src/qml/compiler/qv4compileddata_p.h
parent269e29fdf36dd700d8c985dc7f11dbb5c8746c51 (diff)
[new compiler] Initial support for attached properties
Attached properties are implemented similarly to group properties, except that the object operated on isn't a QQmlValueType from a property (i.e. font) but the QObject that implements the attached properties. Change-Id: If73751162c191c65512ca1bddadd6270e6e33793 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r--src/qml/compiler/qv4compileddata_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h
index 0a404a454f..e11cdddcbb 100644
--- a/src/qml/compiler/qv4compileddata_p.h
+++ b/src/qml/compiler/qv4compileddata_p.h
@@ -334,9 +334,9 @@ struct Property
struct Object
{
- // An empty inherited type name suggests that this object doesn't require to be instantiated
- // by itself but is merely used for grouped properties. It can therefore only have bindings,
- // so nProperties, nFunctions and nSignals must be zero.
+ // Depending on the use, this may be the type name to instantiate before instantiating this
+ // object. For grouped properties the type name will be empty and for attached properties
+ // it will be the name of the attached type.
quint32 inheritedTypeNameIndex;
quint32 idIndex;
quint32 indexOfDefaultProperty;