[vlc-commits] qml: add animations to customization window (toolbareditor) listviews

Fatih Uzunoglu git at videolan.org
Mon Nov 23 15:37:06 CET 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Nov 20 21:32:31 2020 +0300| [f436865053858098895cd080f4ed4350ea35dc64] | committer: Pierre Lamot

qml: add animations to customization window (toolbareditor) listviews

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

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

 modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml b/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml
index b44077ea30..5e659e79f5 100644
--- a/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml
+++ b/modules/gui/qt/dialogs/toolbar/qml/EditorDNDView.qml
@@ -45,6 +45,19 @@ ListView {
             scrollBar.increase()
     }
 
+    remove: Transition {
+        NumberAnimation { property: "opacity"; from: 1.0; to: 0; duration: 200 }
+    }
+
+    add: Transition {
+        NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 200 }
+    }
+
+    displaced: Transition {
+        NumberAnimation { properties: "x"; duration: 200; easing.type: Easing.OutSine }
+        NumberAnimation { property: "opacity"; to: 1.0 }
+    }
+    
     MouseArea {
         anchors.fill: parent
         z: 1



More information about the vlc-commits mailing list