[vlc-devel] [PATCH 10/18] qml: smooth animation in SearchBox
Prince Gupta
guptaprince8832 at gmail.com
Thu Aug 20 14:15:33 CEST 2020
---
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
}
--
2.25.1
More information about the vlc-devel
mailing list