QmlDesigner: Use ProjectStorage

Task-number: QDS-7379
Change-Id: I50c8a4a527daa7268a723094b6ceec37d10dfaa6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marco Bubke
2022-08-23 16:43:44 +02:00
committed by Thomas Hartmann
parent 84e3ffeaba
commit 35a773b2dc
50 changed files with 741 additions and 395 deletions

View File

@@ -383,10 +383,10 @@ QStringList DynamicPropertiesModel::possibleSourceProperties(const BindingProper
const QString expression = bindingProperty.expression();
const QStringList stringlist = expression.split(QLatin1String("."));
PropertyName typeName;
NodeMetaInfo type;
if (auto metaInfo = bindingProperty.parentModelNode().metaInfo(); metaInfo.isValid()) {
typeName = metaInfo.property(bindingProperty.name()).propertyTypeName();
type = metaInfo.property(bindingProperty.name()).propertyType();
} else {
qWarning() << " BindingModel::possibleSourcePropertiesForRow no meta info for target node";
}
@@ -405,7 +405,7 @@ QStringList DynamicPropertiesModel::possibleSourceProperties(const BindingProper
if (metaInfo.isValid()) {
QStringList possibleProperties;
for (const auto &property : metaInfo.properties()) {
if (property.propertyTypeName() == typeName) //### todo proper check
if (property.propertyType() == type) //### todo proper check
possibleProperties.push_back(QString::fromUtf8(property.name()));
}
return possibleProperties;