4 import com.nokia.meego 1.0
6 import 'config.js' as Config
11 property alias model: listView.model
12 property alias moving: listView.moving
13 property bool hasItems: listView.visible
15 signal podcastSelected(variant podcast)
16 signal podcastContextMenu(variant podcast)
20 anchors.centerIn: parent
23 font.weight: Font.Light
24 horizontalAlignment: Text.AlignHCenter
25 text: _('No podcasts.') + '\n' + _('Add your first podcast now.')
26 visible: !listView.visible
27 wrapMode: Text.WordWrap
28 width: parent.width * .8
32 onClicked: podcastList.subscribe()
38 visible: !listView.visible
39 text: _('Add a new podcast')
40 onClicked: podcastList.subscribe()
42 left: podcastList.left
43 right: podcastList.right
44 bottom: podcastList.bottom
54 section.property: 'section'
55 section.delegate: Item {
56 height: Config.headerHeight
58 font.pixelSize: parent.height * .5
63 leftMargin: Config.iconSize * 1.3 + Config.smallSpacing
71 delegate: PodcastItem {
72 onSelected: podcastList.podcastSelected(item)
73 onContextMenu: podcastList.podcastContextMenu(item)
80 flickableItem: listView