forked from qt-creator/qt-creator
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:
@@ -153,8 +153,7 @@ void AnnotationListModel::storeChanges(int row, const QString &customId, const A
|
|||||||
void AnnotationListModel::saveChanges()
|
void AnnotationListModel::saveChanges()
|
||||||
{
|
{
|
||||||
for (auto &item : m_annoList) {
|
for (auto &item : m_annoList) {
|
||||||
ModelNode &node = item.node;
|
if (ModelNode &node = item.node) {
|
||||||
if (node.isValid()) {
|
|
||||||
const QString &annoName = item.annotationName;
|
const QString &annoName = item.annotationName;
|
||||||
const Annotation &anno = item.annotation;
|
const Annotation &anno = item.annotation;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user