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 <aleksei.german@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Thomas Hartmann
2025-03-13 18:09:23 +01:00
committed by Thomas Hartmann
parent c5f2f7984c
commit d8d184fb4f

View File

@@ -2,8 +2,9 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "signalhandlerproperty.h" #include "signalhandlerproperty.h"
#include "internalproperty.h" #include "externaldependenciesinterface.h"
#include "internalnode_p.h" #include "internalnode_p.h"
#include "internalproperty.h"
#include "model.h" #include "model.h"
#include "model_p.h" #include "model_p.h"
@@ -64,6 +65,12 @@ bool SignalHandlerProperty::useNewFunctionSyntax()
if (name().contains('.')) if (name().contains('.'))
return false; return false;
if (!view())
return false;
if (view()->externalDependencies().isQtForMcusProject())
return false;
return parentModelNode().metaInfo().isQtQmlConnections(); return parentModelNode().metaInfo().isQtQmlConnections();
} }