Commit 931d8f0a authored by Camilo Higuita's avatar Camilo Higuita

chenge window title with current track

parent d8ef2b0b
......@@ -36,11 +36,7 @@ Kirigami.ApplicationWindow
Connections
{
target: player
onPos:
{
progressBar.value = pos
}
onPos: progressBar.value = pos
onFinished: Player.nextTrack()
}
......@@ -75,7 +71,6 @@ Kirigami.ApplicationWindow
root.width = columnWidth
else
root.width = columnWidth*3
}
ColumnLayout
......@@ -84,7 +79,6 @@ Kirigami.ApplicationWindow
width: parent.width
height: parent.height
Rectangle
{
id: coverPlay
......
......@@ -3,6 +3,7 @@ function playTrack(track)
currentTrack = track
player.source(currentTrack.url);
player.play()
root.title = currentTrack.title + " - " +currentTrack.artist
}
......
......@@ -37,10 +37,8 @@ ListView
{
id:placeHolder
width: parent.width
height: parent.height
anchors.fill: parent
anchors.centerIn: parent
visible: list.count===0
ColumnLayout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment