From d8d184fb4f0f7c4096a1339957f7279b33aa7110 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 13 Mar 2025 18:09:23 +0100 Subject: [PATCH] QmlDesigner: Always use old syntax for Qt4MCU Qt4MCU does require the signature for new syntax. The signature is not used on most cases and supporting the signature is not worth the effort at the moment. Therefore we fall back to the old syntax for Qt4MCU. Pick-to: qds/4.7 Task-number: QDS-14904 Change-Id: Id0c5962ac91849897229ab9e816879e8089893ee Reviewed-by: Aleksei German Reviewed-by: Marco Bubke --- .../libs/designercore/model/signalhandlerproperty.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/libs/designercore/model/signalhandlerproperty.cpp b/src/plugins/qmldesigner/libs/designercore/model/signalhandlerproperty.cpp index e7f0e4208a3..e02ca7b6dd3 100644 --- a/src/plugins/qmldesigner/libs/designercore/model/signalhandlerproperty.cpp +++ b/src/plugins/qmldesigner/libs/designercore/model/signalhandlerproperty.cpp @@ -2,8 +2,9 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include "signalhandlerproperty.h" -#include "internalproperty.h" +#include "externaldependenciesinterface.h" #include "internalnode_p.h" +#include "internalproperty.h" #include "model.h" #include "model_p.h" @@ -64,6 +65,12 @@ bool SignalHandlerProperty::useNewFunctionSyntax() if (name().contains('.')) return false; + if (!view()) + return false; + + if (view()->externalDependencies().isQtForMcusProject()) + return false; + return parentModelNode().metaInfo().isQtQmlConnections(); }