From a881be85f8f85fe7ded066ed17f29f80dbf9bbf7 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 10 May 2023 10:30:56 +0200 Subject: [PATCH] QmlDesigner: Fix project storage Change-Id: I18c2d49f343edd107581075ab91dd1d324e11dfe Reviewed-by: Burak Hancerli Reviewed-by: Marco Bubke --- .../projectstorage/projectstorage.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h b/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h index be0c9213a75..47b30463f5e 100644 --- a/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h +++ b/src/plugins/qmldesigner/designercore/projectstorage/projectstorage.h @@ -136,19 +136,20 @@ public: .template valueWithTransaction(moduleId, exportedTypeName); } - PropertyDeclarationIds propertyDeclarationIds(TypeId typeId) const + PropertyDeclarationIds propertyDeclarationIds(TypeId typeId) const override { return selectPropertyDeclarationIdsForTypeStatement .template valuesWithTransaction(32, typeId); } - PropertyDeclarationIds localPropertyDeclarationIds(TypeId typeId) const + PropertyDeclarationIds localPropertyDeclarationIds(TypeId typeId) const override { return selectLocalPropertyDeclarationIdsForTypeStatement .template valuesWithTransaction(16, typeId); } - PropertyDeclarationId propertyDeclarationId(TypeId typeId, Utils::SmallStringView propertyName) const + PropertyDeclarationId propertyDeclarationId(TypeId typeId, + Utils::SmallStringView propertyName) const override { return selectPropertyDeclarationIdForTypeAndPropertyNameStatement .template valueWithTransaction(typeId, propertyName); @@ -169,25 +170,25 @@ public: propertyDeclarationId); } - std::optional type(TypeId typeId) const + std::optional type(TypeId typeId) const override { return selectInfoTypeByTypeIdStatement.template optionalValueWithTransaction( typeId); } - std::vector signalDeclarationNames(TypeId typeId) const + std::vector signalDeclarationNames(TypeId typeId) const override { return selectSignalDeclarationNamesForTypeStatement .template valuesWithTransaction(32, typeId); } - std::vector functionDeclarationNames(TypeId typeId) const + std::vector functionDeclarationNames(TypeId typeId) const override { return selectFuncionDeclarationNamesForTypeStatement .template valuesWithTransaction(32, typeId); } - std::optional propertyName(PropertyDeclarationId propertyDeclarationId) const + std::optional propertyName(PropertyDeclarationId propertyDeclarationId) const override { return selectPropertyNameStatement.template optionalValueWithTransaction( propertyDeclarationId); @@ -216,13 +217,13 @@ public: return commonTypeCache_.template builtinTypeId(); } - TypeIds prototypeIds(TypeId type) const + TypeIds prototypeIds(TypeId type) const override { return selectPrototypeIdsForTypeIdInOrderStatement.template valuesWithTransaction(16, type); } - TypeIds prototypeAndSelfIds(TypeId type) const + TypeIds prototypeAndSelfIds(TypeId type) const override { return selectPrototypeAndSelfIdsForTypeIdInOrderStatement .template valuesWithTransaction(16, type);