QmlDesigner: Use Model ConnectionMetaInfo method

Change-Id: I1ac34ed36df45e8fe1f8baa60311b1c337c4ac71
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2022-12-01 22:08:49 +01:00
parent 57448021b8
commit 36c96a0972
4 changed files with 4 additions and 4 deletions

View File

@@ -297,7 +297,7 @@ void ConnectionModel::addConnection()
if (rootModelNode.isValid() && rootModelNode.metaInfo().isValid()) {
NodeMetaInfo nodeMetaInfo = connectionView()->model()->metaInfo("QtQuick.Connections");
NodeMetaInfo nodeMetaInfo = connectionView()->model()->qtQuickConnectionsMetaInfo();
if (nodeMetaInfo.isValid()) {
connectionView()->executeInTransaction("ConnectionModel::addConnection", [=, &rootModelNode](){