From c797038bd8cc4a6f058069dbd34471242529eaab Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 18 Oct 2018 06:47:45 -0400 Subject: Mobile/filtering: only filter when editing is finished This is a usability / performance tradeoff. I like it better when it filters as I type, but on mobile this may make things feel sluggish. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index dc805a394..d41057567 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -410,7 +410,7 @@ Kirigami.ScrollablePage { verticalAlignment: TextInput.AlignVCenter text: "" placeholderText: "Full text search" - onTextChanged: { + onAccepted: { rootItem.filterPattern = text diveModel.setFilter(text) numShown.text = diveModel.shown() -- cgit v1.2.3-70-g09d2