SortFilterModel can't filter and sort at the same time

Bug #1488822 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

It seems that a typical SortFilterModel would be to filter on some properties of a model and sort them at the same time. However, this seems to not be possible, like:

SortFilterModel {
    model: mymodel
    sort.property: "timestamp"
    sort.order: Qt.DescendingOrder
    filter.property: 'foo'
    filter.pattern: /BAR/
}

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: qtdeclarative5-ubuntu-ui-toolkit-plugin 1.3.1603+15.10.20150812-0ubuntu1
ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
Uname: Linux 4.1.0-3-generic x86_64
ApportVersion: 2.18-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Aug 26 10:13:04 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)

Tags: devexp
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
Revision history for this message
Cris Dywan (kalikiana) wrote :

I can't confirm - the attached complete example works fine.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Incomplete
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

You're right, I can't reproduce it today with this example on wily. One less then, thanks ;)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-ui-toolkit (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.