Skip to content

Commit

Permalink
QML UI: Move filter to episode list header
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Jun 28, 2014
1 parent 233fc42 commit 528d637
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions share/gpodder/ui/qml/Main.qml
Expand Up @@ -238,18 +238,26 @@ Item {
id: episodesHeaderRow
width: parent.width
height: Config.listItemHeight


MouseArea {
anchors.fill: parent
onClicked: mainObject.showFilterDialog();
}

Text {
id: headerCaption

text: main.currentPodcast.qtitle
text: main.currentPodcast.qtitle + ' - ' + mainObject.currentFilterText
color: Config.settingsHeaderColor

anchors {
left: parent.left
right: counters.left
leftMargin: Config.smallSpacing
rightMargin: Config.smallSpacing
verticalCenter: parent.verticalCenter
}
elide: Text.ElideRight

font.pixelSize: Config.headerHeight * .5
wrapMode: Text.NoWrap
Expand All @@ -262,8 +270,8 @@ Item {
property int downloadedEpisodes: main.currentPodcast.qdownloaded

anchors {
right: parent.right
rightMargin: Config.smallSpacing
right: filterIcon.left
rightMargin: Config.smallSpacing
verticalCenter: parent.verticalCenter
}

Expand All @@ -274,6 +282,19 @@ Item {
font.pixelSize: Config.headerHeight * .5
}

Image {
id: filterIcon

anchors {
right: parent.right
verticalCenter: parent.verticalCenter
}

visible: !spinner.visible

source: 'image://theme/icon-m-common-filter'
}

BusyIndicator {
id: spinner

Expand Down Expand Up @@ -324,12 +345,6 @@ Item {
main.clickPlayButton();
}
},
Action {
text: _('Filter:') + ' ' + mainObject.currentFilterText
onClicked: {
mainObject.showFilterDialog();
}
},
Action {
text: _('Update')
onClicked: {
Expand Down

0 comments on commit 528d637

Please sign in to comment.