forked from qt-creator/qt-creator
QmlDesigner: Fix project storage
Change-Id: I18c2d49f343edd107581075ab91dd1d324e11dfe Reviewed-by: Burak Hancerli <burak.hancerli@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -136,19 +136,20 @@ public:
|
|||||||
.template valueWithTransaction<TypeId>(moduleId, exportedTypeName);
|
.template valueWithTransaction<TypeId>(moduleId, exportedTypeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyDeclarationIds propertyDeclarationIds(TypeId typeId) const
|
PropertyDeclarationIds propertyDeclarationIds(TypeId typeId) const override
|
||||||
{
|
{
|
||||||
return selectPropertyDeclarationIdsForTypeStatement
|
return selectPropertyDeclarationIdsForTypeStatement
|
||||||
.template valuesWithTransaction<PropertyDeclarationId>(32, typeId);
|
.template valuesWithTransaction<PropertyDeclarationId>(32, typeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyDeclarationIds localPropertyDeclarationIds(TypeId typeId) const
|
PropertyDeclarationIds localPropertyDeclarationIds(TypeId typeId) const override
|
||||||
{
|
{
|
||||||
return selectLocalPropertyDeclarationIdsForTypeStatement
|
return selectLocalPropertyDeclarationIdsForTypeStatement
|
||||||
.template valuesWithTransaction<PropertyDeclarationId>(16, typeId);
|
.template valuesWithTransaction<PropertyDeclarationId>(16, typeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyDeclarationId propertyDeclarationId(TypeId typeId, Utils::SmallStringView propertyName) const
|
PropertyDeclarationId propertyDeclarationId(TypeId typeId,
|
||||||
|
Utils::SmallStringView propertyName) const override
|
||||||
{
|
{
|
||||||
return selectPropertyDeclarationIdForTypeAndPropertyNameStatement
|
return selectPropertyDeclarationIdForTypeAndPropertyNameStatement
|
||||||
.template valueWithTransaction<PropertyDeclarationId>(typeId, propertyName);
|
.template valueWithTransaction<PropertyDeclarationId>(typeId, propertyName);
|
||||||
@@ -169,25 +170,25 @@ public:
|
|||||||
propertyDeclarationId);
|
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>(
|
return selectInfoTypeByTypeIdStatement.template optionalValueWithTransaction<Storage::Info::Type>(
|
||||||
typeId);
|
typeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<Utils::SmallString> signalDeclarationNames(TypeId typeId) const
|
std::vector<Utils::SmallString> signalDeclarationNames(TypeId typeId) const override
|
||||||
{
|
{
|
||||||
return selectSignalDeclarationNamesForTypeStatement
|
return selectSignalDeclarationNamesForTypeStatement
|
||||||
.template valuesWithTransaction<Utils::SmallString>(32, typeId);
|
.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
|
return selectFuncionDeclarationNamesForTypeStatement
|
||||||
.template valuesWithTransaction<Utils::SmallString>(32, typeId);
|
.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>(
|
return selectPropertyNameStatement.template optionalValueWithTransaction<Utils::SmallString>(
|
||||||
propertyDeclarationId);
|
propertyDeclarationId);
|
||||||
@@ -216,13 +217,13 @@ public:
|
|||||||
return commonTypeCache_.template builtinTypeId<builtinType>();
|
return commonTypeCache_.template builtinTypeId<builtinType>();
|
||||||
}
|
}
|
||||||
|
|
||||||
TypeIds prototypeIds(TypeId type) const
|
TypeIds prototypeIds(TypeId type) const override
|
||||||
{
|
{
|
||||||
return selectPrototypeIdsForTypeIdInOrderStatement.template valuesWithTransaction<TypeId>(16,
|
return selectPrototypeIdsForTypeIdInOrderStatement.template valuesWithTransaction<TypeId>(16,
|
||||||
type);
|
type);
|
||||||
}
|
}
|
||||||
|
|
||||||
TypeIds prototypeAndSelfIds(TypeId type) const
|
TypeIds prototypeAndSelfIds(TypeId type) const override
|
||||||
{
|
{
|
||||||
return selectPrototypeAndSelfIdsForTypeIdInOrderStatement
|
return selectPrototypeAndSelfIdsForTypeIdInOrderStatement
|
||||||
.template valuesWithTransaction<TypeId>(16, type);
|
.template valuesWithTransaction<TypeId>(16, type);
|
||||||
|
Reference in New Issue
Block a user