vlc | branch: master | Prince Gupta <guptaprince8...@gmail.com> | Wed Aug 12 21:12:00 2020 +0530| [84dbc857895fb0c3f6ca6f822a49f77ca04db8dd] | committer: Pierre Lamot
qml: smooth animation in SearchBox Signed-off-by: Pierre Lamot <pie...@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 } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits