diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-22 12:18:56 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-22 12:18:56 (GMT) |
commit | 5085d5027f168db01e60e2161d44d9445f9c7beb (patch) | |
tree | 8c356970804cc36090c5201c3a521caddad97f94 /src/declarative/util/qmlconnection.cpp | |
parent | 8d5a395e176239b7e3ee8822cb251b2e631c21de (diff) | |
download | Qt-5085d5027f168db01e60e2161d44d9445f9c7beb.zip Qt-5085d5027f168db01e60e2161d44d9445f9c7beb.tar.gz Qt-5085d5027f168db01e60e2161d44d9445f9c7beb.tar.bz2 |
Add plumbing for more advanced signal property control
Diffstat (limited to 'src/declarative/util/qmlconnection.cpp')
-rw-r--r-- | src/declarative/util/qmlconnection.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/declarative/util/qmlconnection.cpp b/src/declarative/util/qmlconnection.cpp index 6dca2d1..c77d0f6 100644 --- a/src/declarative/util/qmlconnection.cpp +++ b/src/declarative/util/qmlconnection.cpp @@ -187,10 +187,7 @@ void QmlConnection::connectIfValid() return; } - if (sigparams.isEmpty()) - d->boundsignal = new QmlBoundSignal(qmlContext(this), d->script, sender, sigIdx, this); - else - d->boundsignal = new QmlBoundSignalProxy(new QmlContext(qmlContext(this),this), d->script, sender, sigIdx, this); + d->boundsignal = new QmlBoundSignal(qmlContext(this), d->script, sender, mo->method(sigIdx), this); } } @@ -238,7 +235,7 @@ void QmlConnection::setScript(const QString& script) } else { // must exist - update d->script = script; - d->boundsignal->setExpression(script); + d->boundsignal->expression()->setExpression(script); } } else { d->script = script; |