Advertisement
Guest User

Untitled

a guest
Dec 17th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Page {
  2. tools: commonTools
  3.  
  4. XmlListModel {
  5. id: tvmodel;
  6. // http://tvpc.cz/xmltv.xml
  7. source: "http://pcmlich.fit.vutbr.cz/tmp/xmltv.xml"
  8. query: "/tv/channel"
  9. XmlRole { name: "name"; query: "display-name/string()" }
  10. XmlRole { name: "ch_id"; query: "@id/string()" }
  11. }
  12. ListView {
  13. anchors.fill: parent;
  14. model: tvmodel;
  15. delegate: Rectangle {
  16. width: parent.width
  17. height: 88;
  18. Label {
  19. anchors.fill: parent;
  20. text: model.name;
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement