aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/context2d
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/quick/items/context2d
parenta597b4c19f372b65773bb58539b1dfb362f12fdc (diff)
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/quick/items/context2d')
-rw-r--r--src/quick/items/context2d/qquickcanvasitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/context2d/qquickcanvasitem.cpp b/src/quick/items/context2d/qquickcanvasitem.cpp
index 88f0fd11ca..24d71acf26 100644
--- a/src/quick/items/context2d/qquickcanvasitem.cpp
+++ b/src/quick/items/context2d/qquickcanvasitem.cpp
@@ -556,7 +556,7 @@ QQuickCanvasContext* QQuickCanvasItem::rawContext() const
bool QQuickCanvasItem::isPaintConnected()
{
- IS_SIGNAL_CONNECTED(this, "paint(QRect)");
+ IS_SIGNAL_CONNECTED(this, QQuickCanvasItem, paint, (const QRect &));
}
void QQuickCanvasItem::sceneGraphInitialized()
@@ -1074,4 +1074,4 @@ QRect QQuickCanvasItem::tiledRect(const QRectF &window, const QSize &tileSize)
the Canvas has been rendered.
*/
-QT_END_NAMESPACE \ No newline at end of file
+QT_END_NAMESPACE