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:
parent
da4f2bbd73
commit
4648012416
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue