[ui] improve SortFilterDelegateModel

* use variant for filterValue and implement different logics to test filter matching based on value type
* allow redefinition of modelData and respectFilter functions to customize logic from outisde if need be
* add convenient 'reverseSortOrder' method
This commit is contained in:
Yann Lanthony 2018-02-16 13:02:18 +01:00
parent 53764812bd
commit d2da971169
2 changed files with 52 additions and 16 deletions

View file

@ -125,7 +125,7 @@ Pane {
model: metadataModel
sortRole: "raw"
filterRole: "raw"
textFilter: filter.text
filterValue: filter.text
delegate: RowLayout {
width: parent.width
Label {