Commit 1d098ce9 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Remove dependency on XmlListModel


This is not really needed for desktop components and causes
problems since it is not a dependency of qtdeclarative

Change-Id: I1d1debbffab994ed48f8377c485233dd9043e40e
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@nokia.com>
parent 89598ef6
Branches
Tags
No related merge requests found
Showing with 10 additions and 10 deletions
import QtQuick 2.0 import QtQuick 2.0
import QtDesktop 0.2 import QtDesktop 0.2
import QtQuick.XmlListModel 2.0 //import QtQuick.XmlListModel 2.0
Item { Item {
id: root id: root
width: 600 width: 600
height: 300 height: 300
XmlListModel { // XmlListModel {
id: flickerModel // id: flickerModel
source: "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2&tags=" + "Cat" // source: "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2&tags=" + "Cat"
query: "/rss/channel/item" // query: "/rss/channel/item"
namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";" // namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";"
XmlRole { name: "title"; query: "title/string()" } // XmlRole { name: "title"; query: "title/string()" }
XmlRole { name: "imagesource"; query: "media:thumbnail/@url/string()" } // XmlRole { name: "imagesource"; query: "media:thumbnail/@url/string()" }
XmlRole { name: "credit"; query: "media:credit/string()" } // XmlRole { name: "credit"; query: "media:credit/string()" }
} // }
ListModel { ListModel {
id: dummyModel id: dummyModel
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment