From 38a6e710199c13b8b7c9b3a1be67a3088f8b5570 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Wed, 21 Dec 2011 18:25:52 +0000 Subject: [PATCH] Always register accessor properties Otherwise if an Item gets created without the QtQuick module being imported, the engine would fatal. Change-Id: I441c7a61a60f07f2a7e3249253dea359d4ab1c35 Reviewed-by: Martin Jones --- src/quick/items/qquickitem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index 008ac96..c95ae1a 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -2290,6 +2290,9 @@ void QQuickItemPrivate::init(QQuickItem *parent) #endif Q_Q(QQuickItem); + + registerAccessorProperties(); + baselineOffset.invalidate(); if (parent) { -- 2.7.4