[vlc-devel] [PATCH] qml: provide extra padding for scroll bar in PlayListView
Prince Gupta
guptaprince8832 at gmail.com
Sat Apr 11 17:58:30 CEST 2020
---
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 d14d757..a3bb118 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 ac49271..6b7606a 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() {
--
2.20.1
More information about the vlc-devel
mailing list