mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 02:12:04 +02:00
[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:
parent
53764812bd
commit
d2da971169
2 changed files with 52 additions and 16 deletions
|
@ -125,7 +125,7 @@ Pane {
|
|||
model: metadataModel
|
||||
sortRole: "raw"
|
||||
filterRole: "raw"
|
||||
textFilter: filter.text
|
||||
filterValue: filter.text
|
||||
delegate: RowLayout {
|
||||
width: parent.width
|
||||
Label {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue