QmlDesigner: Skip JavaScript functions

Something wrent wrong because the test was already added in an other
patch.

Task-number: QDS-6946
Change-Id: Ib4fb040ae9d5329eb4670c20350953d7e25697ba
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2022-06-08 17:31:12 +02:00
parent b5a766b483
commit b606483006

View File

@@ -270,6 +270,9 @@ std::tuple<Storage::FunctionDeclarations, Storage::SignalDeclarations> createFun
signalDeclarations.reserve(Utils::usize(qmlMethods));
for (const QQmlJSMetaMethod &qmlMethod : qmlMethods) {
if (qmlMethod.isJavaScriptFunction())
continue;
if (qmlMethod.methodType() != QQmlJSMetaMethod::Type::Signal) {
functionsDeclarations.emplace_back(Utils::SmallString{qmlMethod.methodName()},
fullyQualifiedTypeName(qmlMethod.returnTypeName(),