[vlc-devel] [PATCH 3/5] qml: Add new animation to drawer

Rohan Rajpal rohan17089 at iiitd.ac.in
Sun Jul 28 20:56:21 CEST 2019


Add animation support to new drawer
---
 modules/gui/qt/qml/utils/DrawerExt.qml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/modules/gui/qt/qml/utils/DrawerExt.qml b/modules/gui/qt/qml/utils/DrawerExt.qml
index 7eb8da045e..c72e6bd268 100644
--- a/modules/gui/qt/qml/utils/DrawerExt.qml
+++ b/modules/gui/qt/qml/utils/DrawerExt.qml
@@ -87,4 +87,21 @@ NavigableFocusScope {
             default: return 0
             }
     }
+
+    transitions: [
+        Transition {
+            to: "hidden"
+            SequentialAnimation {
+                NumberAnimation { target: container; property: toChange; duration: 200}
+                PropertyAction{ target: container; property: "visible" }
+            }
+        },
+        Transition {
+            to: "visible"
+            SequentialAnimation {
+                PropertyAction{ target: container; property: "visible" }
+                NumberAnimation { target: container; property: toChange; duration: 200 }
+            }
+        }
+    ]
 }
-- 
2.17.1



More information about the vlc-devel mailing list