mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
Skip to song when clicking in the queue
This commit is contained in:
parent
f09593c245
commit
75474e1793
5 changed files with 28 additions and 0 deletions
|
@ -7,6 +7,7 @@ import "music"
|
|||
|
||||
SilicaListView {
|
||||
//header: PageHeader { title: qsTr("Play queue") }
|
||||
property var playbackManager
|
||||
section.property: "section"
|
||||
section.delegate: SectionHeader {
|
||||
text: {
|
||||
|
@ -29,6 +30,7 @@ SilicaListView {
|
|||
indexNumber: index + 1
|
||||
duration: model.runTimeTicks
|
||||
playing: model.playing
|
||||
onClicked: playbackManager.skipToItemIndex(model.index)
|
||||
}
|
||||
clip: true
|
||||
}
|
||||
|
|
|
@ -98,6 +98,12 @@ PanelBackground {
|
|||
value: manager.queue
|
||||
//currentIndex: manager.queueIndex
|
||||
}
|
||||
Binding {
|
||||
when: queueLoader.item !== null
|
||||
target: queueLoader.item
|
||||
property: "playbackManager"
|
||||
value: manager
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue