[vlc-commits] qml: implement play icon clicked for network grid items
Prince Gupta
git at videolan.org
Thu Aug 27 12:44:17 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Aug 19 18:41:48 2020 +0530| [dda176f30bf6618b423d546fff723a24aec1a314] | committer: Pierre Lamot
qml: implement play icon clicked for network grid items
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dda176f30bf6618b423d546fff723a24aec1a314
---
modules/gui/qt/network/qml/NetworkBrowseDisplay.qml | 1 +
modules/gui/qt/network/qml/NetworkHomeDeviceListView.qml | 2 ++
2 files changed, 3 insertions(+)
diff --git a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
index 98eae1d94b..2b2bf1fda6 100644
--- a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
+++ b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
@@ -176,6 +176,7 @@ Widgets.NavigableFocusScope {
subtitle: ""
+ onPlayClicked: selectionModel.model.addAndPlay( index )
onItemClicked : {
selectionModel.updateSelection( modifier , view.currentItem.currentIndex, index)
view.currentItem.currentIndex = index
diff --git a/modules/gui/qt/network/qml/NetworkHomeDeviceListView.qml b/modules/gui/qt/network/qml/NetworkHomeDeviceListView.qml
index 39b4ce6723..2f0732feae 100644
--- a/modules/gui/qt/network/qml/NetworkHomeDeviceListView.qml
+++ b/modules/gui/qt/network/qml/NetworkHomeDeviceListView.qml
@@ -92,6 +92,8 @@ Widgets.NavigableFocusScope {
forceActiveFocus()
}
+ onPlayClicked: deviceModel.addAndPlay( index )
+
onItemDoubleClicked: {
if (model.type === NetworkMediaModel.TYPE_NODE || model.type === NetworkMediaModel.TYPE_DIRECTORY)
history.push( ["mc", "network", { tree: model.tree } ])
More information about the vlc-commits
mailing list