QmlDesigner: Use new validation approach in annotation list

Many validation tests can now be skipped.

Task-number: QDS-7454
Change-Id: Id08ad92f891a3feba1804c738003f7c405e8975d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Marco Bubke
2022-08-31 10:18:05 +02:00
parent b07cbe62bf
commit 6ea1aecc46

View File

@@ -153,8 +153,7 @@ void AnnotationListModel::storeChanges(int row, const QString &customId, const A
void AnnotationListModel::saveChanges()
{
for (auto &item : m_annoList) {
ModelNode &node = item.node;
if (node.isValid()) {
if (ModelNode &node = item.node) {
const QString &annoName = item.annotationName;
const Annotation &anno = item.annotation;