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

QContactManagerEngine::CompareVariant() does not support QVariant::Url

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 1.2.0
    • Contacts
    • None
    • MeeGo
    • 868d1b4070414582c5f97a713150059d94b1241f

    Description

      QContactManagerEngine::CompareVariant() is used by QContactManagerEngine::testFilter() to do variant comparison when the MatchExactly flag is used.
      The issue is that QContactManagerEngine::CompareVariant() does not support comparison of QVariant::Url type and will return 0 (which is considered as a "match" by QContactManagerEngine::testFilter().

      As a consequence, making the following filter would match ALL contacts (if testFilter() is used):

      QContactDetailFilter filter;
      filter.setDetailDefinitionName(QContactUrl::DefinitionName, QContactUrl::FieldUrl);
      filter.setMatchFlags(QContactFilter::MatchExactly);
      filter.setValue("http://mydummyurl.fi");
      ret = manager->contacts(filter);

      Attachments

        Activity

          People

            satu.m.makela satu makela
            hydr0g3n Christophe Dumez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: