diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2020-07-16 12:47:51 +0200 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2020-08-03 12:51:22 +0000 |
commit | 9d6f69abe9d08f4abdce0dbd0864ad79f5fc74d6 (patch) | |
tree | e389aef2548acd2600d8b62c810ef07782a1157b | |
parent | 9b249033d27259c01b8ecb87cbfda8f0c6c5867b (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.cpp | 2 |
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>"); |