Commit 0ea1f979 authored by Prince Gupta's avatar Prince Gupta Committed by Pierre Lamot

qml: show play cover on MusicTrackList cover images

parent c3b987f8
......@@ -54,6 +54,8 @@ Widgets.KeyNavigableTableView {
property Component titleDelegate: RowLayout {
property var rowModel: parent.rowModel
property var model: parent.colModel
readonly property bool containsMouse: parent.containsMouse
readonly property bool currentlyFocused: parent.currentlyFocused
anchors.fill: parent
spacing: VLCStyle.margin_normal
......@@ -64,6 +66,14 @@ Widgets.KeyNavigableTableView {
Layout.preferredHeight: VLCStyle.heightAlbumCover_xsmall
Layout.preferredWidth: VLCStyle.heightAlbumCover_xsmall
Widgets.PlayCover {
anchors.fill: parent
iconSize: VLCStyle.play_cover_small
visible: currentlyFocused || containsMouse
onIconClicked: medialib.addAndPlay( )
Widgets.ListLabel {
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