forked from qt-creator/qt-creator
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user