blob: 1400c36932338d2eedcccc939c1c3939fe8ac575 (
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
30
31
32
33
34
35
36
37
38
39
40
41
|
import Qt 4.7
Item {
id: delegate
width: delegate.ListView.view.width; height: 60
Text {
text: name
color: delegate.ListView.isCurrentItem ? "white" : "black"
font { family: "Helvetica"; pixelSize: 16; bold: true }
anchors {
left: parent.left; leftMargin: 15
verticalCenter: parent.verticalCenter
}
}
BusyIndicator {
scale: 0.6
on: delegate.ListView.isCurrentItem && window.loading
anchors { right: parent.right; rightMargin: 10; verticalCenter: parent.verticalCenter }
}
Rectangle {
width: delegate.width; height: 1; color: "#cccccc"
anchors.bottom: delegate.bottom
visible: delegate.ListView.isCurrentItem ? false : true
}
Rectangle {
width: delegate.width; height: 1; color: "white"
visible: delegate.ListView.isCurrentItem ? false : true
}
MouseArea {
anchors.fill: delegate
onClicked: {
delegate.ListView.view.currentIndex = index
window.currentFeed = feed
}
}
}
|