[vlc-devel] [PATCH 05/49] qml: disable animations in the toolbar editor

Pierre Lamot pierre at videolabs.io
Fri Oct 11 15:17:29 CEST 2019


---
 modules/gui/qt/qml/dialogs/EditorDNDView.qml           | 6 +++---
 modules/gui/qt/qml/dialogs/ToolbarEditorButtonList.qml | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/qml/dialogs/EditorDNDView.qml b/modules/gui/qt/qml/dialogs/EditorDNDView.qml
index ce2292d0d9..997148833a 100644
--- a/modules/gui/qt/qml/dialogs/EditorDNDView.qml
+++ b/modules/gui/qt/qml/dialogs/EditorDNDView.qml
@@ -91,7 +91,7 @@ ListView {
         anchors.verticalCenter: currentIndex > 0 ? parent.verticalCenter : undefined
         color: VLCStyle.colors.bgHover
     }
-    displaced: Transition {
-        NumberAnimation { properties: "x,y"; easing.type: Easing.OutQuad }
-    }
+
+    highlightMoveDuration: 0 //ms
+    highlightResizeDuration: 0 //ms
 }
diff --git a/modules/gui/qt/qml/dialogs/ToolbarEditorButtonList.qml b/modules/gui/qt/qml/dialogs/ToolbarEditorButtonList.qml
index a4b2f3e76d..f0091e3f7b 100644
--- a/modules/gui/qt/qml/dialogs/ToolbarEditorButtonList.qml
+++ b/modules/gui/qt/qml/dialogs/ToolbarEditorButtonList.qml
@@ -34,6 +34,8 @@ GridView{
     ScrollBar.vertical: ScrollBar {}
     model: controlButtons.buttonL.length
 
+    highlightMoveDuration: 0 //ms
+
     delegate:MouseArea{
         id:dragArea
         objectName: "buttonsList"
-- 
2.20.1



More information about the vlc-devel mailing list