diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-04-02 10:57:01 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-04-03 09:12:03 +0200 |
commit | c3b6e81388fa02a8e3b99ee6f3fa3e9c7dba1772 (patch) | |
tree | 0d2465382b30935f9c351b82c692645b84182d08 /src/qml/common | |
parent | 36fc392147ea79bb665058ea165c86f6cd6680d7 (diff) |
V4: Add missing accessor function
As we can get builtin types from properties, we should also be able to
get custom types.
Change-Id: I661b5843113c1a11cef7e10e3d8432fb29d88377
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/common')
-rw-r--r-- | src/qml/common/qv4compileddata_p.h | 5 |
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"); |