[vlc-commits] qml: implement playClicked signals in AudioGridItem and VideoGridItem
Prince Gupta
git at videolan.org
Fri Jul 3 14:59:39 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jun 26 19:38:11 2020 +0530| [8027b04242b7b64b3196b9f3443b42446866f824] | committer: Pierre Lamot
qml: implement playClicked signals in AudioGridItem and VideoGridItem
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8027b04242b7b64b3196b9f3443b42446866f824
---
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"])
+ }
+ }
}
More information about the vlc-commits
mailing list