From 4648012416020ad0cf0c6f321bb1ac5e4bac2d68 Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Sun, 3 Jan 2021 13:50:27 +0200 Subject: [PATCH] Make the search functionality case insensitive. --- qml/pages/MainView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index 374d474..577a39a 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -168,7 +168,7 @@ Page { placeholderText: qsTr("Search") onTextChanged: { for (var i = 0; i < appWin.listModel.count; i++) { - appWin.listModel.get(i).itemVisible = appWin.listModel.get(i).title.toString().indexOf(searchField.text) > -1 + appWin.listModel.get(i).itemVisible = appWin.listModel.get(i).title.toString().toLowerCase().indexOf(searchField.text.toLowerCase()) > -1 } } }