[vlc-devel] [PATCH 05/22] qml: set the default focus on the action buttons in the music album expand view

Pierre Lamot pierre at videolabs.io
Fri Feb 14 11:23:40 CET 2020


---
 .../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
-- 
2.17.1



More information about the vlc-devel mailing list