[vlc-devel] [PATCH 10/12] qml: implement play icon clicked for network grid items
Prince Gupta
guptaprince8832 at gmail.com
Mon Aug 24 17:08:27 CEST 2020
---
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 } ])
--
2.25.1
More information about the vlc-devel
mailing list