This is invalid. For future reference, the situation is slightly more
complex. I’m trying to do something like that:
SortFilterModel {
sort.property: "blah"
sort.order: Qt.DescendingOrder
model: CustomSortFilterModel {
sourceModel: CustomListModel {}
}
}
where CustomListModel is a custom QAbstractListModel and
CustomSortFilterModel is a custom QSortFilterProxyModel that does
sorting and filtering. When model gets set on the SortFilterModel, its
sourceModel might not have been set yet, so querying the roleNames will
return an empty QHash, and subsequent attempts to sort the model will
fail because property "blah" couldn’t be matched to a role index.
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1495482
Title:
SortFilterModel cannot sort by a numeric role
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1495482/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs