vlc | branch: master | Prince Gupta <guptaprince8...@gmail.com> | Fri Nov 20 23:17:38 2020 +0530| [22bd38738b3b1d2f9965cd35e8a75aeecaa4bf8e] | committer: Pierre Lamot
qml: add addressbar in network tab Signed-off-by: Pierre Lamot <pie...@videolabs.io> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=22bd38738b3b1d2f9965cd35e8a75aeecaa4bf8e --- modules/gui/qt/network/qml/NetworkDisplay.qml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt/network/qml/NetworkDisplay.qml b/modules/gui/qt/network/qml/NetworkDisplay.qml index e0c94f3d1b..9e61eff225 100644 --- a/modules/gui/qt/network/qml/NetworkDisplay.qml +++ b/modules/gui/qt/network/qml/NetworkDisplay.qml @@ -41,20 +41,34 @@ Widgets.NavigableFocusScope { root.tree = undefined } + property Component localMenuDelegate + function loadView() { var page = ""; var props = undefined; - if (root.tree === undefined) + if (root.tree === undefined) { page ="qrc:///network/NetworkHomeDisplay.qml" - else { + root.localMenuDelegate = null + } else { page = "qrc:///network/NetworkBrowseDisplay.qml" props = { providerModel: mediaModel, contextMenu: mediaContextMenu, tree: root.tree } + root.localMenuDelegate = addressBar } view.replace(page, props) if (view.currentItem.model) root.contentModel = view.currentItem.model } + Component { + id: addressBar + + NetworkAddressbar { + path: mediaModel.path + + onHomeButtonClicked: history.push(["mc", "network"]) + } + } + NetworkMediaModel { id: mediaModel _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits