aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/common')
-rw-r--r--src/qml/common/qv4compileddata_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h
index f0c4c2aa3e..52ef6aaf5e 100644
--- a/src/qml/common/qv4compileddata_p.h
+++ b/src/qml/common/qv4compileddata_p.h
@@ -671,6 +671,11 @@ struct Property
builtinTypeOrTypeNameIndex = nameIndex;
isBuiltinType = false;
}
+
+ int customType() const
+ {
+ return isBuiltinType ? -1 : builtinTypeOrTypeNameIndex;
+ }
};
static_assert(sizeof(Property) == 12, "Property structure needs to have the expected size to be binary compatible on disk when generated by host compiler and loaded by target");