diff options
author | Michael Brasser <mbrasser@ford.com> | 2018-03-20 09:44:30 -0500 |
---|---|---|
committer | Michael Brasser <michael.brasser@live.com> | 2018-03-21 13:07:30 +0000 |
commit | 21301c1dbb00f4a2cd991e520423ed039b297ffb (patch) | |
tree | 9798bda2358b379212f69ae67c42fbb7a769e18f /src/qml/types/qqmlconnections.cpp | |
parent | dc4d6293f9473c0f03c570430d08867d2d01c6e2 (diff) |
Simplify handling of function expressions as signal handlers
Change-Id: I4bfa05b4619c248119c78d05e64270e6627f6065
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/types/qqmlconnections.cpp')
-rw-r--r-- | src/qml/types/qqmlconnections.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/types/qqmlconnections.cpp b/src/qml/types/qqmlconnections.cpp index d1a7aa9b6f..2ae3df6ebb 100644 --- a/src/qml/types/qqmlconnections.cpp +++ b/src/qml/types/qqmlconnections.cpp @@ -289,13 +289,6 @@ void QQmlConnections::connectSignals() signal->setEnabled(d->enabled); auto f = d->compilationUnit->runtimeFunctions[binding->value.compiledScriptIndex]; - - // If the function is marked as having a nested function, then the user wrote: - // onSomeSignal: function() { /*....*/ } - // So take that nested function: - if (auto closure = f->nestedFunction()) - f = closure; - QQmlBoundSignalExpression *expression = ctxtdata ? new QQmlBoundSignalExpression(target, signalIndex, ctxtdata, this, f) : nullptr; |