[vlc-commits] qml: Add new animation to drawer

Rohan Rajpal git at videolan.org
Mon Jul 29 20:23:28 CEST 2019


vlc | branch: master | Rohan Rajpal <rohan17089 at iiitd.ac.in> | Mon Jul 29 00:44:21 2019 +0530| [1f28fa8c2a837e0dccab56019ac12c65c6ca409b] | committer: Jean-Baptiste Kempf

qml: Add new animation to drawer

Add animation support to new drawer

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 }
+            }
+        }
+    ]
 }



More information about the vlc-commits mailing list