[vlc-commits] qml: provide extra padding for scroll bar in PlayListView
Prince Gupta
git at videolan.org
Fri May 29 12:00:48 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Sat Apr 11 21:46:30 2020 +0530| [6a050b88a4e6c9e730d84aecd19fd044e1966c08] | committer: Pierre Lamot
qml: provide extra padding for scroll bar in PlayListView
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a050b88a4e6c9e730d84aecd19fd044e1966c08
---
modules/gui/qt/playlist/qml/PlaylistListView.qml | 2 +-
modules/gui/qt/widgets/qml/KeyNavigableListView.qml | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index d14d757980..a3bb1186c8 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -159,7 +159,7 @@ Widgets.NavigableFocusScope {
width: root.width
leftPadding: root.leftPadding
- rightPadding: root.rightPadding
+ rightPadding: root.rightPadding + view.scrollBarWidth
onItemClicked : {
/* to receive keys events */
diff --git a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
index ac49271373..6b7606a998 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
@@ -60,6 +60,8 @@ NavigableFocusScope {
property int highlightMargin: VLCStyle.margin_large
+ property int scrollBarWidth: scroll_id.visible ? scroll_id.width : 0
+
Accessible.role: Accessible.List
function nextPage() {
More information about the vlc-commits
mailing list