summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2021-05-07 16:55:24 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2022-09-19 12:56:31 +0000
commit39ac7b1bf6add473026687003311b702742b6b21 (patch)
tree869d5e70ed23206128819add1efd7c3ccd376c8f
parentc5ab9205895d630d2a3828e4f623617efcb97784 (diff)
downloadqt-creator-4.15.tar.gz
QmlDesigner: Allow functions of animations4.15
For some reason we get nullValue for the functions of animations like 'update', 'start', 'restart', 'stop', 'pause'. Change-Id: I2301083d6d61e2f8f59e5878023cac0fcf711e61 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
-rw-r--r--src/plugins/qmldesigner/components/bindingeditor/actioneditor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/bindingeditor/actioneditor.cpp b/src/plugins/qmldesigner/components/bindingeditor/actioneditor.cpp
index 89364c5116..672bd08033 100644
--- a/src/plugins/qmldesigner/components/bindingeditor/actioneditor.cpp
+++ b/src/plugins/qmldesigner/components/bindingeditor/actioneditor.cpp
@@ -237,6 +237,9 @@ void ActionEditor::prepareConnections()
QmlJS::ValueOwner *interp = context->valueOwner();
const QmlJS::Value *value = interp->convertToObject(scopeChain.evaluate(expression));
+ if (value->asNullValue() && !methodBlackList.contains(slotName))
+ connection.methods.append(QString::fromUtf8(slotName));
+
if (const QmlJS::FunctionValue *f = value->asFunctionValue()) {
// Only add slots with zero arguments
if (f->namedArgumentCount() == 0 && !methodBlackList.contains(slotName))