Skip to content

Commit

Permalink
Always enable value type support in v4.
Browse files Browse the repository at this point in the history
Change-Id: Ifb4e44aa6d2f13c79319d03e0fd7a4c0c3db06d8
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
  • Loading branch information
Michael Brasser authored and Qt by Nokia committed Mar 20, 2012
1 parent 89c57d2 commit 87308c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/qml/qml/qqmlvme.cpp
Expand Up @@ -816,7 +816,7 @@ QObject *QQmlVME::run(QList<QQmlError> *errors,
bindValues.push(binding);
binding->m_mePtr = &bindValues.top();

Q_ASSERT(binding->propertyIndex() == property);
Q_ASSERT(binding->propertyIndex() == (property & 0xFF00FFFF));
Q_ASSERT(binding->object() == target);

binding->addToObject();
Expand Down
4 changes: 0 additions & 4 deletions src/qml/qml/v4/qv4compiler.cpp
Expand Up @@ -54,7 +54,6 @@ QT_BEGIN_NAMESPACE

DEFINE_BOOL_CONFIG_OPTION(bindingsDump, QML_BINDINGS_DUMP)
DEFINE_BOOL_CONFIG_OPTION(qmlDisableOptimizer, QML_DISABLE_OPTIMIZER)
DEFINE_BOOL_CONFIG_OPTION(qmlExperimental, QML_EXPERIMENTAL)
DEFINE_BOOL_CONFIG_OPTION(qmlVerboseCompiler, QML_VERBOSE_COMPILER)
DEFINE_BOOL_CONFIG_OPTION(qmlBindingsTestEnv, QML_BINDINGS_TEST)

Expand Down Expand Up @@ -1360,9 +1359,6 @@ int QV4Compiler::compile(const Expression &expression, QQmlEnginePrivate *engine
{
if (!expression.expression.asAST()) return false;

if (!qmlExperimental() && expression.property->isValueTypeSubProperty)
return -1;

if (qmlDisableOptimizer() || !qmlEnableV4)
return -1;

Expand Down

0 comments on commit 87308c9

Please sign in to comment.