diff options
| author | Marco Bubke <marco.bubke@qt.io> | 2023-05-10 10:30:56 +0200 |
|---|---|---|
| committer | Marco Bubke <marco.bubke@qt.io> | 2023-05-10 09:22:36 +0000 |
| commit | a881be85f8f85fe7ded066ed17f29f80dbf9bbf7 (patch) | |
| tree | ca7fd8a470d4075fd0bb5217e328e022998ab32c | |
| parent | 849b8cf000fa00acaf59209ebf4b00c184f5b1b4 (diff) | |
| download | qt-creator-a881be85f8f85fe7ded066ed17f29f80dbf9bbf7.tar.gz | |
QmlDesigner: Fix project storage
Change-Id: I18c2d49f343edd107581075ab91dd1d324e11dfe
Reviewed-by: Burak Hancerli <burak.hancerli@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
| -rw-r--r-- | src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h b/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h index be0c9213a7..47b30463f5 100644 --- a/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h +++ b/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h @@ -136,19 +136,20 @@ public: .template valueWithTransaction<TypeId>(moduleId, exportedTypeName); } - PropertyDeclarationIds propertyDeclarationIds(TypeId typeId) const + PropertyDeclarationIds propertyDeclarationIds(TypeId typeId) const override { return selectPropertyDeclarationIdsForTypeStatement .template valuesWithTransaction<PropertyDeclarationId>(32, typeId); } - PropertyDeclarationIds localPropertyDeclarationIds(TypeId typeId) const + PropertyDeclarationIds localPropertyDeclarationIds(TypeId typeId) const override { return selectLocalPropertyDeclarationIdsForTypeStatement .template valuesWithTransaction<PropertyDeclarationId>(16, typeId); } - PropertyDeclarationId propertyDeclarationId(TypeId typeId, Utils::SmallStringView propertyName) const + PropertyDeclarationId propertyDeclarationId(TypeId typeId, + Utils::SmallStringView propertyName) const override { return selectPropertyDeclarationIdForTypeAndPropertyNameStatement .template valueWithTransaction<PropertyDeclarationId>(typeId, propertyName); @@ -169,25 +170,25 @@ public: propertyDeclarationId); } - std::optional<Storage::Info::Type> type(TypeId typeId) const + std::optional<Storage::Info::Type> type(TypeId typeId) const override { return selectInfoTypeByTypeIdStatement.template optionalValueWithTransaction<Storage::Info::Type>( typeId); } - std::vector<Utils::SmallString> signalDeclarationNames(TypeId typeId) const + std::vector<Utils::SmallString> signalDeclarationNames(TypeId typeId) const override { return selectSignalDeclarationNamesForTypeStatement .template valuesWithTransaction<Utils::SmallString>(32, typeId); } - std::vector<Utils::SmallString> functionDeclarationNames(TypeId typeId) const + std::vector<Utils::SmallString> functionDeclarationNames(TypeId typeId) const override { return selectFuncionDeclarationNamesForTypeStatement .template valuesWithTransaction<Utils::SmallString>(32, typeId); } - std::optional<Utils::SmallString> propertyName(PropertyDeclarationId propertyDeclarationId) const + std::optional<Utils::SmallString> propertyName(PropertyDeclarationId propertyDeclarationId) const override { return selectPropertyNameStatement.template optionalValueWithTransaction<Utils::SmallString>( propertyDeclarationId); @@ -216,13 +217,13 @@ public: return commonTypeCache_.template builtinTypeId<builtinType>(); } - TypeIds prototypeIds(TypeId type) const + TypeIds prototypeIds(TypeId type) const override { return selectPrototypeIdsForTypeIdInOrderStatement.template valuesWithTransaction<TypeId>(16, type); } - TypeIds prototypeAndSelfIds(TypeId type) const + TypeIds prototypeAndSelfIds(TypeId type) const override { return selectPrototypeAndSelfIdsForTypeIdInOrderStatement .template valuesWithTransaction<TypeId>(16, type); |
