diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-06-12 05:35:27 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-06-12 05:35:27 (GMT) |
commit | 87dff0ac19fc8af4c30fd7959723fbdb60eb3bdf (patch) | |
tree | d5160fd174446fb8df617114eb001f474efbfb40 /src/declarative/extra/qmlxmllistmodel.cpp | |
parent | 815df4da786a778517b1fac8435cc052d791ce92 (diff) | |
download | Qt-87dff0ac19fc8af4c30fd7959723fbdb60eb3bdf.zip Qt-87dff0ac19fc8af4c30fd7959723fbdb60eb3bdf.tar.gz Qt-87dff0ac19fc8af4c30fd7959723fbdb60eb3bdf.tar.bz2 |
Some XmlListModel cleanup.
Diffstat (limited to 'src/declarative/extra/qmlxmllistmodel.cpp')
-rw-r--r-- | src/declarative/extra/qmlxmllistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/extra/qmlxmllistmodel.cpp b/src/declarative/extra/qmlxmllistmodel.cpp index b10f5fd..51905fa 100644 --- a/src/declarative/extra/qmlxmllistmodel.cpp +++ b/src/declarative/extra/qmlxmllistmodel.cpp @@ -230,7 +230,7 @@ void QmlXmlQuery::doSubQueryJob() QXmlItem item(output3.next()); QList<QVariant> resultList; while (!item.isNull()) { - resultList << item.toAtomicValue(); + resultList << item.toAtomicValue(); //### we used to trim strings item = output3.next(); } m_modelData << resultList; @@ -346,7 +346,7 @@ void QmlXmlRoleList::insert(int i, XmlListModelRole *role) query: "doc($src)/rss/channel/item" Role { name: "title"; query: "title/string()" } Role { name: "link"; query: "link/string()" } - Role { name: "description"; query: "description/string()"; isCData: true } + Role { name: "description"; query: "description/string()" } } \endqml \note The model is currently static, so the above is really just a snapshot of an RSS feed. |