filterCaseSensitivity doesn't work when used in SortFilterModel
Bug #1663924 reported by
Adnane Belmadiaf
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Cris Dywan |
Bug Description
SortFilterModel does support sortCaseSensitivity but not filterCaseSensi
Related branches
lp://staging/~ubuntu-sdk-team/ubuntu-ui-toolkit/insensitivePattern
- ubuntu-sdk-build-bot: Needs Fixing (continuous-integration)
- Tim Peeters: Approve
- Adnane Belmadiaf (community): Approve
-
Diff: 85 lines (+19/-5)2 files modifiedsrc/UbuntuToolkit/sortfiltermodel.cpp (+5/-2)
tests/unit/components/tst_sortfiltermodel.qml (+14/-3)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
The property can't work: QSortFilterProx yModel. sortCaseSensiti vity doesn't change the pattern and the superclass doesn't have any signals, making it impossible to manually update the results.
We 'could' consider overriding the property to make this work. However, I'm not sure it's particularly useful: in your example, new RegExp("^" + searchTerms, "i") achieves the same as setting the superclass property, as does using a literal regular expression such as /^B/i.