QmlDesigner: use hasMultiSelection in property editor backend

Change-Id: I7499e278f80b72f9ffc61bc60b28145ea6fda685
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
Thomas Hartmann
2022-09-20 18:12:52 +02:00
parent 493c05a6c3
commit c23155cdd4

View File

@@ -461,6 +461,9 @@ void PropertyEditorQmlBackend::setup(const QmlObjectNode &qmlObjectNode, const Q
} }
); );
contextObject()->setHasMultiSelection(
!qmlObjectNode.view()->singleSelectedModelNode().isValid());
qCInfo(propertyEditorBenchmark) << "anchors:" << time.elapsed(); qCInfo(propertyEditorBenchmark) << "anchors:" << time.elapsed();
qCInfo(propertyEditorBenchmark) << "context:" << time.elapsed(); qCInfo(propertyEditorBenchmark) << "context:" << time.elapsed();