From b6ce2683fd8f01ef58d7e9caad133ee6cb9e2ed9 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 18 Dec 2009 11:55:53 +1000 Subject: Deferred properties are off by default --- src/declarative/qml/qmlcompiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp index 3f0dd84..6ecb647 100644 --- a/src/declarative/qml/qmlcompiler.cpp +++ b/src/declarative/qml/qmlcompiler.cpp @@ -83,6 +83,7 @@ QT_BEGIN_NAMESPACE DEFINE_BOOL_CONFIG_OPTION(compilerDump, QML_COMPILER_DUMP); DEFINE_BOOL_CONFIG_OPTION(compilerStatDump, QML_COMPILER_STATISTICS_DUMP); DEFINE_BOOL_CONFIG_OPTION(qmlExperimental, QML_EXPERIMENTAL); +DEFINE_BOOL_CONFIG_OPTION(qmlEnableDeferred, QML_ENABLE_DEFERRED); using namespace QmlParser; @@ -2767,6 +2768,9 @@ QmlType *QmlCompiler::toQmlType(QmlParser::Object *from) QStringList QmlCompiler::deferredProperties(QmlParser::Object *obj) { + if (!qmlEnableDeferred()) + return QStringList(); + const QMetaObject *mo = obj->metatype; int idx = mo->indexOfClassInfo("DeferredPropertyNames"); -- cgit v0.12