[vlc-devel] [PATCH 29/29] qml: disable highlight auto scroll in toolbar editor
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Apr 1 22:22:41 UTC 2021
This patch intends to fix #25576 /
https://code.videolan.org/videolan/vlc/-/issues/25576
---
.../gui/qt/dialogs/toolbar/qml/EditorDNDView.qml | 2 ++
.../toolbar/qml/ToolbarEditorButtonList.qml | 14 ++++++++++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml b/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml
index 5e659e79f5..d27e91fbc7 100644
--- a/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml
+++ b/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml
@@ -29,6 +29,8 @@ ListView {
orientation: Qt.Horizontal
clip: true
+ highlightFollowsCurrentItem: false
+
property bool containsDrag: footerItem.dropVisible
property alias scrollBar: scrollBar
diff --git a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
index f90c88780d..239c9b16f8 100644
--- a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
+++ b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
@@ -29,13 +29,10 @@ GridView{
id: allButtonsView
clip: true
- highlight: Rectangle{
- color: VLCStyle.colors.bgHover
- }
ScrollBar.vertical: ScrollBar { policy: ScrollBar.AlwaysOn }
model: controlButtons.buttonL.length
- highlightMoveDuration: 0 //ms
+ highlightFollowsCurrentItem: false
cellWidth: VLCStyle.cover_small
cellHeight: cellWidth
@@ -139,6 +136,15 @@ GridView{
onEntered: allButtonsView.currentIndex = index
+ Loader {
+ active: allButtonsView.currentIndex === index
+ anchors.fill: parent
+
+ sourceComponent: Rectangle {
+ color: VLCStyle.colors.bgHover
+ }
+ }
+
ColumnLayout{
id: listelemlayout
anchors.fill: parent
--
2.27.0
More information about the vlc-devel
mailing list