diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-05-23 14:15:47 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-05-24 04:04:26 +0000 |
commit | 46c6db6f58fadb2bc4d3e9be5a7f93824e43db64 (patch) | |
tree | 372b340de6e6013b4f63fdfd9159e735e3e2d258 /src/qml/qml/qqmlvmemetaobject_p.h | |
parent | 81dfb0bdebb5432828f77eb4c0b1eb3a8366d8de (diff) |
Shrink QQmlVMEMetaData::AliasData
We can retrieve the alias property index from the QV4::CompiledData::Alias and the
property type from the property cache (only needed for aliases to value types).
Change-Id: Ibf0cb909a4cd1ce1c2d67b57e1be1de491d4d598
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject_p.h')
-rw-r--r-- | src/qml/qml/qqmlvmemetaobject_p.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h index ddd1243b54..d70ee88b20 100644 --- a/src/qml/qml/qqmlvmemetaobject_p.h +++ b/src/qml/qml/qqmlvmemetaobject_p.h @@ -82,31 +82,8 @@ struct QQmlVMEMetaData int dummy; struct AliasData { - int propertyIdx; - int propType; int flags; int notifySignal; - - bool isObjectAlias() const { - return propertyIdx == -1; - } - bool isPropertyAlias() const { - return !isObjectAlias() && valueTypeIndex() == -1; - } - bool isValueTypeAlias() const { - return !isObjectAlias() && valueTypeIndex() != -1; - } - int propertyIndex() const { - int index; - QQmlPropertyData::decodeValueTypePropertyIndex(propertyIdx, &index); - return index; - } - int valueTypeIndex() const { - return QQmlPropertyData::decodeValueTypePropertyIndex(propertyIdx); - } - int valueType() const { - return (valueTypeIndex() != -1) ? propType : 0; - } }; AliasData *aliasData() const { |