aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2020-07-16 12:47:51 +0200
committerHenning Gründl <henning.gruendl@qt.io>2020-08-03 12:51:22 +0000
commit9d6f69abe9d08f4abdce0dbd0864ad79f5fc74d6 (patch)
treee389aef2548acd2600d8b62c810ef07782a1157b
parent9b249033d27259c01b8ecb87cbfda8f0c6c5867b (diff)
QmlDesigner: Sort incompatible properties
Sort incompatible properties before showing them in the dialog. Task-number: QDS-2560 Change-Id: I9871bc8ea488be04fcfac7b9c0f1a7cbf185072a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp2
1 files changed, 2 insertions, 0 deletions
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("<b>Incompatible properties:</b><br>");