[vlc-commits] qml: smooth animation in SearchBox

Prince Gupta git at videolan.org
Thu Aug 27 12:43:57 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Aug 12 21:12:00 2020 +0530| [84dbc857895fb0c3f6ca6f822a49f77ca04db8dd] | committer: Pierre Lamot

qml: smooth animation in SearchBox

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

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

 modules/gui/qt/widgets/qml/SearchBox.qml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml
index abd2a11c1e..595f289eb7 100644
--- a/modules/gui/qt/widgets/qml/SearchBox.qml
+++ b/modules/gui/qt/widgets/qml/SearchBox.qml
@@ -55,23 +55,25 @@ Widgets.NavigableFocusScope {
             expanded = false
     }
 
-    PropertyAnimation {
+    SmoothedAnimation {
         id: animateExpand;
         target: searchBox;
         properties: "width"
         duration: 200
         to: VLCStyle.widthSearchInput
+        easing.type: Easing.OutSine
         onStopped: {
             searchBox.placeholderText = i18n.qtr("filter")
         }
     }
 
-    PropertyAnimation {
+    SmoothedAnimation {
         id: animateRetract;
         target: searchBox;
         properties: "width"
         duration: 200
         to: 0
+        easing.type: Easing.OutSine
     }
 
 



More information about the vlc-commits mailing list