1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-12-22 03:32:30 +00:00

Make the search functionality case insensitive.

This commit is contained in:
Jyri-Petteri Paloposki 2021-01-03 13:50:27 +02:00
parent da4f2bbd73
commit 4648012416

View file

@ -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
}
}
}