summaryrefslogtreecommitdiffstats
path: root/demos/declarative/rssnews/content/NewsDelegate.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-17 06:45:35 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-05-17 07:27:43 (GMT)
commit1db36a5a37dcca0e24ada3c852f2647ab2330eee (patch)
tree49bdb24dde6e2cc6bc4d5c63281498c6b757ddeb /demos/declarative/rssnews/content/NewsDelegate.qml
parent9663e257f28a89f26952f5d3822a343bfe12ee6e (diff)
downloadQt-1db36a5a37dcca0e24ada3c852f2647ab2330eee.zip
Qt-1db36a5a37dcca0e24ada3c852f2647ab2330eee.tar.gz
Qt-1db36a5a37dcca0e24ada3c852f2647ab2330eee.tar.bz2
Move xmldata example into rssnews demo.
Diffstat (limited to 'demos/declarative/rssnews/content/NewsDelegate.qml')
-rw-r--r--demos/declarative/rssnews/content/NewsDelegate.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/demos/declarative/rssnews/content/NewsDelegate.qml b/demos/declarative/rssnews/content/NewsDelegate.qml
new file mode 100644
index 0000000..0d03880
--- /dev/null
+++ b/demos/declarative/rssnews/content/NewsDelegate.qml
@@ -0,0 +1,29 @@
+import Qt 4.7
+
+Item {
+ id: delegate
+ height: childrenRect.height + 20
+ width: delegate.ListView.view.width
+
+ Column {
+ x: 20; y: 20
+ width: parent.width - 40
+
+ Text {
+ id: titleText
+ text: title; width: parent.width; wrapMode: Text.WordWrap
+ font { bold: true; family: "Helvetica"; pointSize: 16 }
+ }
+
+ Text {
+ id: descriptionText
+ width: parent.width; text: description
+ wrapMode: Text.WordWrap; font.family: "Helvetica"
+ }
+ }
+
+ Rectangle {
+ width: parent.width; height: 1; color: "#cccccc"
+ anchors.bottom: parent.bottom
+ }
+}