SortFilterModel can't filter on subproperty like content.title
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
SortFilterModel doesn't enable to filter on subproperty.
Here is a simple non working example:
SortFilterModel {
id: currentmodel
model: billsResults
filter.
filter.pattern: /BAR/
}
Knowing that most of the u1db models are exporting into a "contents" property handling the rest, it seems that to chain it to a SortFilterModel, it would be interesting to have it able to filter through subproperties
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qtdeclarative5-
ProcVersionSign
Uname: Linux 4.1.0-3-generic x86_64
ApportVersion: 2.18-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Aug 26 10:10:49 2015
InstallationDate: Installed on 2012-05-28 (1184 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: ubuntu-ui-toolkit
UpgradeStatus: Upgraded to wily on 2014-10-31 (298 days ago)
I don't think this conceptually works since even though these are called properties, they are technically role names and can't be nested - what you perceive as sub properties in this context are Variant children.
That said, bug 1266529 addresses this in U1Db.