From d2e557c2c2d7fcf3bf7c1676df3902e115986dc2 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 11 May 2012 12:01:41 +0100 Subject: Lazily create QMetaObjects For internal QML built types, creating a metaobject each time is just wasteful. Additionally, as the property caches were always created from the intermediate QMetaObject, it was difficult to pass information directly from the compiler to the property cache. Change-Id: I769526b0edaaf16a86883f3065b75618b94e4077 Reviewed-by: Roberto Raggi --- src/quick/items/qquickborderimage_p_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/quick/items/qquickborderimage_p_p.h') diff --git a/src/quick/items/qquickborderimage_p_p.h b/src/quick/items/qquickborderimage_p_p.h index 07a62b4d29..a55bd56cea 100644 --- a/src/quick/items/qquickborderimage_p_p.h +++ b/src/quick/items/qquickborderimage_p_p.h @@ -84,7 +84,8 @@ public: Q_Q(QQuickBorderImage); if (!border) { border = new QQuickScaleGrid(q); - FAST_CONNECT(border, SIGNAL(borderChanged()), q, SLOT(doUpdate())) + qmlobject_connect(border, QQuickScaleGrid, SIGNAL(borderChanged()), + q, QQuickBorderImage, SLOT(doUpdate())) } return border; } -- cgit v1.2.3