diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-10-26 03:33:29 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-10-26 03:35:14 (GMT) |
commit | c5315a322a65971d636bd73e2444cdd8565e00f4 (patch) | |
tree | 5bc876c16fdccae4ef140f09af50bfbc1b282d01 /src/declarative/util | |
parent | 24498457049f0504d0b09935dea6ca6a5634bb2d (diff) | |
download | Qt-c5315a322a65971d636bd73e2444cdd8565e00f4.zip Qt-c5315a322a65971d636bd73e2444cdd8565e00f4.tar.gz Qt-c5315a322a65971d636bd73e2444cdd8565e00f4.tar.bz2 |
Fix accessing QmlList data as a model.
Diffstat (limited to 'src/declarative/util')
-rw-r--r-- | src/declarative/util/qmllistaccessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmllistaccessor.cpp b/src/declarative/util/qmllistaccessor.cpp index 578646b..21007d6 100644 --- a/src/declarative/util/qmllistaccessor.cpp +++ b/src/declarative/util/qmllistaccessor.cpp @@ -136,7 +136,7 @@ QVariant QmlListAccessor::at(int idx) const QmlPrivate::ListInterface *li = *(QmlPrivate::ListInterface **)d.constData(); void *ptr[1]; li->at(idx, ptr); - return QmlMetaType::fromObject((QObject*)ptr[0], li->type()); //XXX only handles QObject-derived types + return QVariant::fromValue((QObject*)ptr[0]); } case QList: return QmlMetaType::listAt(d, idx); |