[vlc-devel] [PATCH 13/14] qml: implement playClicked signals in AudioGridItem and VideoGridItem
Prince Gupta
guptaprince8832 at gmail.com
Thu Jul 2 14:23:22 CEST 2020
---
modules/gui/qt/medialibrary/qml/AudioGridItem.qml | 5 +++++
modules/gui/qt/medialibrary/qml/VideoGridItem.qml | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/AudioGridItem.qml b/modules/gui/qt/medialibrary/qml/AudioGridItem.qml
index c06a7fe8ec..08228d5ae3 100644
--- a/modules/gui/qt/medialibrary/qml/AudioGridItem.qml
+++ b/modules/gui/qt/medialibrary/qml/AudioGridItem.qml
@@ -30,4 +30,9 @@ Widgets.GridItem {
pictureWidth: VLCStyle.gridCover_music_width
pictureHeight: VLCStyle.gridCover_music_height
playCoverBorder.width: VLCStyle.gridCover_music_border
+ onPlayClicked: {
+ if ( model.id !== undefined ) {
+ medialib.addAndPlay( model.id )
+ }
+ }
}
diff --git a/modules/gui/qt/medialibrary/qml/VideoGridItem.qml b/modules/gui/qt/medialibrary/qml/VideoGridItem.qml
index 1d8ef2ef12..894bbab3ac 100644
--- a/modules/gui/qt/medialibrary/qml/VideoGridItem.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoGridItem.qml
@@ -43,4 +43,10 @@ Widgets.GridItem {
history.push(["player"])
}
}
+ onPlayClicked: {
+ if ( model.id !== undefined ) {
+ medialib.addAndPlay( model.id )
+ history.push(["player"])
+ }
+ }
}
--
2.25.1
More information about the vlc-devel
mailing list