summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-26 03:33:29 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-26 03:35:14 (GMT)
commitc5315a322a65971d636bd73e2444cdd8565e00f4 (patch)
tree5bc876c16fdccae4ef140f09af50bfbc1b282d01 /src/declarative/util
parent24498457049f0504d0b09935dea6ca6a5634bb2d (diff)
downloadQt-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.cpp2
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);