From 29121d53f838e919e5a362d9884c7854e291f9b3 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 2 Jun 2022 14:26:44 +0200 Subject: [PATCH] Delay on timeline search --- linphone-app/ui/modules/Linphone/Timeline/Timeline.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linphone-app/ui/modules/Linphone/Timeline/Timeline.qml b/linphone-app/ui/modules/Linphone/Timeline/Timeline.qml index e055994c5..541a1c56f 100644 --- a/linphone-app/ui/modules/Linphone/Timeline/Timeline.qml +++ b/linphone-app/ui/modules/Linphone/Timeline/Timeline.qml @@ -339,8 +339,14 @@ Rectangle { //: 'Search in the list' : ths is a placeholder when searching something in the timeline list placeholderText: qsTr('timelineSearchPlaceholderText') - onTextChanged: timeline.model.filterText = text + onTextChanged: searchDelay.restart() font.pointSize: TimelineStyle.searchField.pointSize + Timer{ + id: searchDelay + interval: 600 + repeat: false + onTriggered: timeline.model.filterText = searchBar.text + } } }