Skip to content

Commit

Permalink
Always register accessor properties
Browse files Browse the repository at this point in the history
Otherwise if an Item gets created without the QtQuick module being
imported, the engine would fatal.

Change-Id: I441c7a61a60f07f2a7e3249253dea359d4ab1c35
Reviewed-by: Martin Jones <martin.jones@nokia.com>
  • Loading branch information
Aaron Kennedy authored and Qt by Nokia committed Dec 22, 2011
1 parent 32a17d2 commit 38a6e71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/quick/items/qquickitem.cpp
Expand Up @@ -2290,6 +2290,9 @@ void QQuickItemPrivate::init(QQuickItem *parent)
#endif

Q_Q(QQuickItem);

registerAccessorProperties();

baselineOffset.invalidate();

if (parent) {
Expand Down

0 comments on commit 38a6e71

Please sign in to comment.