summaryrefslogtreecommitdiffstats
path: root/demos/declarative/rssnews/content/NewsDelegate.qml
blob: 0d0388067fd4424b513d777f069ad0504c339156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
    }
}