2 import Sailfish.Silica 1.0
8 property var channels: null
9 property int currentChannel: -1
10 property bool _channelsAvailable: channels && channels.length
11 enabled: _channelsAvailable
13 value: (_channelsAvailable ? currentChannel>=0 ? (currentChannel+1)+": "+channels[currentChannel] : "0: (off)" : "(not available)")
17 if(_channelsAvailable)
18 pageStack.push(selectDialog);
29 function selectChannel(index)
31 channelSelect.currentChannel = index;
38 contentHeight: column.height
44 spacing: Theme.paddingLarge
49 title: channelSelect.label
56 down: channelSelect.currentChannel+1==channelIndex
58 onClicked: page.selectChannel(channelIndex-1);
63 model: channelSelect.channels
68 channelName: modelData
69 down: channelSelect.currentChannel+1==channelIndex
71 onClicked: page.selectChannel(channelIndex-1);