[vlc-commits] qml: fix KeyNavigableListView horizontal scrollbar in Qt 5.15

Fatih Uzunoglu git at videolan.org
Wed Feb 17 09:31:53 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Feb 12 00:23:39 2021 +0300| [3843cbe566c219ce60f883f80b483b8db21b543d] | committer: Pierre Lamot

qml: fix KeyNavigableListView horizontal scrollbar in Qt 5.15

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/widgets/qml/KeyNavigableListView.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
index 950819628e..9c808f2595 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
@@ -136,7 +136,7 @@ NavigableFocusScope {
 
         clip: true
         ScrollBar.vertical: ScrollBar { id: scroll_id }
-        ScrollBar.horizontal: ScrollBar { }
+        ScrollBar.horizontal: ScrollBar { visible: view.contentWidth > view.width }
 
         highlightMoveDuration: 300 //ms
         highlightMoveVelocity: 1000 //px/s



More information about the vlc-commits mailing list