Toolbar with back button, menu and play throbber
This commit is contained in:
parent
532a99edea
commit
7bdf6b783a
19 changed files with 298 additions and 129 deletions
|
@ -29,6 +29,43 @@ SlidePage {
|
|||
id: podcastsPage
|
||||
canClose: false
|
||||
|
||||
hasMenuButton: true
|
||||
menuButtonLabel: 'Settings'
|
||||
onMenuButtonClicked: {
|
||||
pgst.showSelection([
|
||||
{
|
||||
label: 'Check for new episodes',
|
||||
callback: function () {
|
||||
py.call('main.check_for_episodes');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Filter episodes',
|
||||
callback: function () {
|
||||
pgst.loadPage('EpisodeQueryPage.qml');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'About',
|
||||
callback: function () {
|
||||
pgst.loadPage('AboutPage.qml');
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Add new podcast',
|
||||
callback: function () {
|
||||
pgst.loadPage('Subscribe.qml');
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Search gpodder.net',
|
||||
callback: function () {
|
||||
pgst.loadPage('Directory.qml');
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
PListView {
|
||||
id: podcastList
|
||||
title: 'Subscriptions'
|
||||
|
@ -36,43 +73,6 @@ SlidePage {
|
|||
section.property: 'section'
|
||||
section.delegate: SectionHeader { text: section }
|
||||
|
||||
headerIcon: Icons.cog
|
||||
headerIconText: 'Settings'
|
||||
onHeaderIconClicked: {
|
||||
pgst.showSelection([
|
||||
{
|
||||
label: 'Check for new episodes',
|
||||
callback: function () {
|
||||
py.call('main.check_for_episodes');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Filter episodes',
|
||||
callback: function () {
|
||||
pgst.loadPage('EpisodeQueryPage.qml');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'About',
|
||||
callback: function () {
|
||||
pgst.loadPage('AboutPage.qml');
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Add new podcast',
|
||||
callback: function () {
|
||||
pgst.loadPage('Subscribe.qml');
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Search gpodder.net',
|
||||
callback: function () {
|
||||
pgst.loadPage('Directory.qml');
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
PPlaceholder {
|
||||
text: 'No podcasts'
|
||||
visible: podcastList.count === 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue