~unity-2d-team/unity-2d/natty

Viewing all changes in revision 648.

  • Committer: Tarmac
  • Author(s): Florian Boucault
  • Date: 2011-07-27 12:31:33 UTC
  • mfrom: (615.5.9 proxy_model_count)
  • Revision ID: ubuntu.builder@gmail.com-20110727123133-2qfgqog3fx5630x8
[backend] New APIs for QSortFilterProxyModelQML and unit tests.

QSortFilterProxyModel: added 'count' and 'totalCount' properties that give respectively the number of rows of the proxy model and the total number of rows of the source model before filtering.
QSortFilterProxyModel: added 'limit' property to limit the number of rows exposed from the source model. Implemented by limiting the number returned by rowCount instead of overriding filterAcceptsRow.
Added unit tests for QSortFilterProxyModelQML. One of the test fails and has been deactivated. It is unsure if that broken case causes an actual user visible problem and should be revisited in the near future.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: