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>
This commit is contained in:
Henning Gruendl
2020-07-16 12:47:51 +02:00
committed by Henning Gründl
parent 9b249033d2
commit 9d6f69abe9

View File

@@ -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>");