diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-18 01:55:53 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-18 01:55:53 (GMT) |
commit | b6ce2683fd8f01ef58d7e9caad133ee6cb9e2ed9 (patch) | |
tree | a4171e1ff6158925836396ca5598c116febced43 /src/declarative/qml/qmlcompiler.cpp | |
parent | 1900bfc37d38806894db2eb1deace8aff200ed88 (diff) | |
download | Qt-b6ce2683fd8f01ef58d7e9caad133ee6cb9e2ed9.zip Qt-b6ce2683fd8f01ef58d7e9caad133ee6cb9e2ed9.tar.gz Qt-b6ce2683fd8f01ef58d7e9caad133ee6cb9e2ed9.tar.bz2 |
Deferred properties are off by default
Diffstat (limited to 'src/declarative/qml/qmlcompiler.cpp')
-rw-r--r-- | src/declarative/qml/qmlcompiler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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"); |