From 9d6f69abe9d08f4abdce0dbd0864ad79f5fc74d6 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Thu, 16 Jul 2020 12:47:51 +0200 Subject: QmlDesigner: Sort incompatible properties Sort incompatible properties before showing them in the dialog. Task-number: QDS-2560 Change-Id: I9871bc8ea488be04fcfac7b9c0f1a7cbf185072a Reviewed-by: Thomas Hartmann --- .../components/propertyeditor/propertyeditorcontextobject.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp index 524debfe17..8032f41ad8 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp @@ -206,6 +206,8 @@ void PropertyEditorContextObject::changeTypeName(const QString &typeName) incompatibleProperties.append(property.name()); } + Utils::sort(incompatibleProperties); + if (!incompatibleProperties.empty()) { QString detailedText = QString("Incompatible properties:
"); -- cgit v1.2.3