diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-18 00:00:22 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-18 00:00:22 (GMT) |
commit | 0ad9f711969ddbf5995ddf2b7fcd5087698b93d1 (patch) | |
tree | 98f6d2cced3ccc7ebea6d42bb6eaf0b508d1fadc /src | |
parent | a60c9a1ff41e5ca1482121ff3f89a112b359b6d4 (diff) | |
parent | 169328d35d009e22eb625d0175c559389e6f1c2f (diff) | |
download | Qt-0ad9f711969ddbf5995ddf2b7fcd5087698b93d1.zip Qt-0ad9f711969ddbf5995ddf2b7fcd5087698b93d1.tar.gz Qt-0ad9f711969ddbf5995ddf2b7fcd5087698b93d1.tar.bz2 |
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp b/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp index d4d07cc..8131b4c 100644 --- a/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsvisualitemmodel.cpp @@ -895,16 +895,11 @@ QVariant QmlGraphicsVisualDataModel::value(int index, const QString &name) QVariant val; QObject *nobj = d->m_cache.item(index); if (nobj) { - val = QmlEngine::contextForObject(nobj)->contextProperty(name); + val = d->data(nobj)->property(name.toUtf8()); } else { - QmlContext *ccontext = d->m_context; - if (!ccontext) ccontext = qmlContext(this); - QmlContext *ctxt = new QmlContext(ccontext); QmlGraphicsVisualDataModelData *data = new QmlGraphicsVisualDataModelData(index, this); - ctxt->addDefaultObject(data); - val = ctxt->contextProperty(name); + val = data->property(name.toUtf8()); delete data; - delete ctxt; } return val; |