[vlc-commits] [Git][videolan/vlc][master] qml: use smooth animation for expand item

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Sep 6 09:36:25 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4e0485cc by Prince Gupta at 2024-09-06T08:49:32+00:00
qml: use smooth animation for expand item

SmoothAnimation will choose In/Out quad easing
curve automatically based on target value change,
this allows better handling of implicit height
changes

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/ExpandGridView.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/ExpandGridView.qml
=====================================
@@ -1042,11 +1042,10 @@ FocusScope {
             animateRetractItem.start()
         }
 
-        NumberAnimation {
+        SmoothedAnimation {
             id: animateRetractItem;
             target: root;
             properties: "_expandItemVerticalSpace"
-            easing.type: Easing.OutQuad
             duration: VLCStyle.duration_long
             to: 0
             onStopped: {
@@ -1056,11 +1055,10 @@ FocusScope {
             }
         }
 
-        NumberAnimation {
+        SmoothedAnimation {
             id: animateExpandItem;
             target: root;
             properties: "_expandItemVerticalSpace"
-            easing.type: Easing.InQuad
             duration: VLCStyle.duration_long
             from: 0
         }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4e0485cca61f6c5679771b2e0f41e386d26e4e43

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4e0485cca61f6c5679771b2e0f41e386d26e4e43
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list