forked from qt-creator/qt-creator
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:
@@ -270,6 +270,9 @@ std::tuple<Storage::FunctionDeclarations, Storage::SignalDeclarations> createFun
|
|||||||
signalDeclarations.reserve(Utils::usize(qmlMethods));
|
signalDeclarations.reserve(Utils::usize(qmlMethods));
|
||||||
|
|
||||||
for (const QQmlJSMetaMethod &qmlMethod : qmlMethods) {
|
for (const QQmlJSMetaMethod &qmlMethod : qmlMethods) {
|
||||||
|
if (qmlMethod.isJavaScriptFunction())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (qmlMethod.methodType() != QQmlJSMetaMethod::Type::Signal) {
|
if (qmlMethod.methodType() != QQmlJSMetaMethod::Type::Signal) {
|
||||||
functionsDeclarations.emplace_back(Utils::SmallString{qmlMethod.methodName()},
|
functionsDeclarations.emplace_back(Utils::SmallString{qmlMethod.methodName()},
|
||||||
fullyQualifiedTypeName(qmlMethod.returnTypeName(),
|
fullyQualifiedTypeName(qmlMethod.returnTypeName(),
|
||||||
|
Reference in New Issue
Block a user