diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-05-03 20:02:05 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-18 08:51:38 +0000 |
commit | 91bbe86251398280f54bf3c769a700041488eb24 (patch) | |
tree | 4249166951e470720743afff08b66b5f654ebcab /src/qml/qml/qqmlboundsignal.cpp | |
parent | 66fa2b979632d87f0ac9b3f1455df66411984670 (diff) |
Move setting the callback type for the endpoint to the constructor
Change-Id: I1881fc3e79f93e3cfe01a201d60956c460c0d196
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlboundsignal.cpp')
-rw-r--r-- | src/qml/qml/qqmlboundsignal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlboundsignal.cpp b/src/qml/qml/qqmlboundsignal.cpp index 0cf09024e6..8b97720093 100644 --- a/src/qml/qml/qqmlboundsignal.cpp +++ b/src/qml/qml/qqmlboundsignal.cpp @@ -247,11 +247,11 @@ void QQmlBoundSignalExpression::evaluate(void **a) */ QQmlBoundSignal::QQmlBoundSignal(QObject *target, int signal, QObject *owner, QQmlEngine *engine) - : m_prevSignal(0), m_nextSignal(0), + : QQmlNotifierEndpoint(QQmlNotifierEndpoint::QQmlBoundSignal), + m_prevSignal(0), m_nextSignal(0), m_expression(0) { addToObject(owner); - setCallback(QQmlNotifierEndpoint::QQmlBoundSignal); /* If this is a cloned method, connect to the 'original'. For example, |