1 // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
3 import QtQuick.XmlListModel 2.0
10 signal clicked(string url)
14 text: qsTr("Project News")
26 anchors { top: header.bottom; topMargin: 14; bottom: parent.bottom }
28 delegate: listDelegate
38 source: "http://forum.librepilot.org/index.php?board=11.0&action=.xml&type=atom&sa=news"
40 namespaceDeclarations: "declare default element namespace 'http://www.w3.org/2005/Atom';"
42 XmlRole { name: "title"; query: "title/string()" }
43 XmlRole { name: "description"; query: "summary/string()" }
44 XmlRole { name: "link"; query: "link/@href/string()" }
51 height: column.height + 16
59 textFormat: text.indexOf("&") > 0 ? Text.StyledText : Text.PlainText
60 elide: Text.ElideRight
62 color: mouseArea.containsMouse ? "#224d81" : "black"
68 textFormat: Text.RichText
70 wrapMode: Text.WordWrap
71 elide: Text.ElideRight
72 color: mouseArea.containsMouse ? "#224d81" : "black"
82 container.clicked(link)