summaryrefslogtreecommitdiff
path: root/src/particles/qquickcustomaffector.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-06-03 20:30:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-10 13:47:15 +0200
commit6f7bb92e5df069716bef9639c965b4c8a9aaaabf (patch)
tree8971961afb6b046dcbddb3ba6c7778b1e3f7b2da /src/particles/qquickcustomaffector.cpp
parenta597b4c19f372b65773bb58539b1dfb362f12fdc (diff)
downloadqtdeclarative-6f7bb92e5df069716bef9639c965b4c8a9aaaabf.tar.gz
qtdeclarative-6f7bb92e5df069716bef9639c965b4c8a9aaaabf.tar.bz2
qtdeclarative-6f7bb92e5df069716bef9639c965b4c8a9aaaabf.zip
Avoid string-based lookup in IS_SIGNAL_CONNECTED
Specify the signal as a member function suitable for passing to QMetaMethod::fromSignal(), and use the new function QMetaObjectPrivate::signalIndex(QMetaMethod) to get the index in the signal range. Change-Id: If16daa24c2699f7749a17decb611cf395d89d0c4 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/particles/qquickcustomaffector.cpp')
-rw-r--r--src/particles/qquickcustomaffector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particles/qquickcustomaffector.cpp b/src/particles/qquickcustomaffector.cpp
index 72b1536c5..819dd128f 100644
--- a/src/particles/qquickcustomaffector.cpp
+++ b/src/particles/qquickcustomaffector.cpp
@@ -103,7 +103,7 @@ QQuickCustomAffector::QQuickCustomAffector(QQuickItem *parent) :
bool QQuickCustomAffector::isAffectConnected()
{
- IS_SIGNAL_CONNECTED(this, "affectParticles(QQmlV8Handle,qreal)");
+ IS_SIGNAL_CONNECTED(this, QQuickCustomAffector, affectParticles, (QQmlV8Handle,qreal));
}
void QQuickCustomAffector::affectSystem(qreal dt)