[vlc-commits] qml: set the default focus on the action buttons in the music album expand view

Pierre Lamot git at videolan.org
Fri Feb 14 11:59:53 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jan 29 12:49:11 2020 +0100| [46f8f5e6b6ea82baa11598a0d3f34125ecbc05f2] | committer: Jean-Baptiste Kempf

qml: set the default focus on the action buttons in the music album expand view

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46f8f5e6b6ea82baa11598a0d3f34125ecbc05f2
---

 modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
index 822686f61a..83ffccf6df 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
@@ -51,6 +51,8 @@ Widgets.NavigableFocusScope {
             Layout.preferredWidth: artAndControlLayout.implicitWidth
             Layout.alignment: Qt.AlignTop
 
+            focus: true
+
             Column {
                 id: artAndControlLayout
 
@@ -154,7 +156,6 @@ Widgets.NavigableFocusScope {
                 parentId : root.model.id
                 onParentIdChanged: {
                     currentIndex = 0
-                    focus = true
                 }
 
                 onCurrentItemChanged: {
@@ -168,7 +169,6 @@ Widgets.NavigableFocusScope {
                     { isPrimary: true, criteria: "title",         width:0.70, visible: true, text: i18n.qtr("Title"), showSection: "" },
                     { criteria: "duration",      width:0.20, visible: true, text: i18n.qtr("Duration"), showSection: "" },
                 ]
-                focus: true
 
                 navigationParent: root
                 navigationLeftItem: actionButtons



More information about the vlc-commits mailing list