[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: use OpacityAnimator in PlaylistListView

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Feb 16 09:37:10 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
19c038c9 by Fatih Uzunoglu at 2023-02-16T09:18:40+00:00
qml: use OpacityAnimator in PlaylistListView

- - - - -
f9d123e8 by Fatih Uzunoglu at 2023-02-16T09:18:40+00:00
qml: add comment on the usage of YAnimator in PlaylistListView

- - - - -


1 changed file:

- modules/gui/qt/playlist/qml/PlaylistListView.qml


Changes:

=====================================
modules/gui/qt/playlist/qml/PlaylistListView.qml
=====================================
@@ -427,21 +427,29 @@ Control {
             }
 
             add: Transition {
-                NumberAnimation {
-                    property: "opacity"; from: 0; to: 1.0
+                SequentialAnimation {
+                    PropertyAction {
+                        // TODO: Remove this >= Qt 5.15
+                        property: "opacity"
+                        value: 0.0
+                    }
 
-                    duration: VLCStyle.duration_long
+                    OpacityAnimator {
+                        from: 0.0 // QTBUG-66475
+                        to: 1.0
+                        duration: VLCStyle.duration_long
+                        easing.type: Easing.OutSine
+                    }
                 }
             }
 
             displaced: Transition {
                 NumberAnimation {
-                    properties: "x,y"
-
-                    duration: VLCStyle.duration_long; easing.type: Easing.OutSine
+                    // TODO: Use YAnimator >= Qt 6.0 (QTBUG-66475)
+                    property: "y"
+                    duration: VLCStyle.duration_long
+                    easing.type: Easing.OutSine
                 }
-
-                NumberAnimation { property: "opacity"; to: 1.0 }
             }
 
             onSelectAll: root.model.selectAll()



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/244a52b84bb514c39456c9d20c726606646fe012...f9d123e835728fc07353ae9c0baa001c06042014

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/244a52b84bb514c39456c9d20c726606646fe012...f9d123e835728fc07353ae9c0baa001c06042014
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