Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-475

Count property & get function(s) needed in GalleryQueryModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.1.0
    • 1.1.0
    • Document Gallery
    • None
    • All platforms

      Component: plugins/declarative/gallery

      For more advanced usages of the GalleryQueryModel a count -property and a get -function (or getProperty -functoin) would be needed.

      Find attached a patch that implements these in one way.

      An alternative would be to provide some kind of iterator to the result set. The usual pattern is that one wants to iterate through the results and create an own model for ListView or PathView combining the results of two queries or one query and some own data.

      An example of a need is that currently with tracker the artist of an Album query is always empty. One can do an own 'algorithm' to find out the artist of an album by querying all the songs and creating a model in Java Script of albums and their artists. This is not currently easily doable in QML without the ability to iterate through the results of GalleryQueryModel.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            tmikola Tapani Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes