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

Favorite sorting not functioning properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 1.1.2
    • Contacts
    • None

    Description

      Tried the code below

         ContactModel{
              id:contactModel;
              sortOrders: [
                  SortOrder {
                      blankPolicy: SortOrder.BlanksLast
                      detail:ContactDetail.Name
                      field:Name.FirstName
                      direction:Qt.AscendingOrder
                  },
                  SortOrder {
                      detail:ContactDetail.Favorite
                      field:Favorite
                      direction:Qt.AscendingOrder
                  }
              ]
          }
      
      

      to filter the favorite contacts on top of the list view, but it doesnt work.

      Also,
      the property model.contact.favorite doesnt seem to be work either.

                      Image{
                          anchors{right:parent.right; rightMargin: 10;verticalCenter: parent.verticalCenter}
                          width: 40;height: 40;
                          visible: model.contact.favorite.favorite
                          source: "../../pics/favourite.svg"
                      }
      

      Please suggest if it is wrong way of doing it or it is a bug in Contacts mobility

      Attachments

        Activity

          People

            satu.m.makela satu makela
            tapadar Indrajit Tapadar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: