QmlDesigner: Add ProjectStorage::propertyDeclaration

Returns for a property declaration id the property declaration infos. If
there are no infos a null optional is returned.

Task-number: QDS-7278
Change-Id: I4faa158008130f00f31062bab94baa7f88d70edf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marco Bubke
2022-07-13 15:29:27 +02:00
parent d6d752e6ca
commit f6ba4bc603
5 changed files with 101 additions and 0 deletions

View File

@@ -548,6 +548,16 @@ std::ostream &operator<<(std::ostream &out, PropertyDeclarationTraits traits)
}
} // namespace Storage
namespace Storage::Info {
std::ostream &operator<<(std::ostream &out, const PropertyDeclaration &propertyDeclaration)
{
using Utils::operator<<;
return out << "(\"" << propertyDeclaration.typeId << "\", " << propertyDeclaration.name << ", "
<< propertyDeclaration.typeId << ", " << propertyDeclaration.traits << ", "
<< propertyDeclaration.propertyTypeId << "\")";
}
} // namespace Storage::Info
namespace Storage::Synchronization {
namespace {