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

QMap<QString, QContactDetail> QContact::preferredDetails() panics

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 1.2.0
    • Contacts
    • None
    • Reproduced in S60 emulator env (MCL wk18, Qt Mobility 1.2 and Qt 4.7.4), but should be valid on other platforms as well.
    • 0d33f73f7fc08f94b6d092a62d6438d00c4a69c4

    Description

      Here is a code snippet:
      QContactManager man;
      QContact c;
      c.setType(QContactType::TypeContact);
      QContactName nm;
      nm.setFirstName("first");
      c.saveDetail(&nm);
      QContactPhoneNumber nbr;
      nbr.setNumber("12345");
      nbr.setSubTypes(QContactPhoneNumber::SubTypeMobile);
      c.saveDetail(&nbr);
      bool res = c.setPreferredDetail(QContactAction::ActionCall, nbr);
      QMap<QString, QContactDetail> preferredDetails = c.preferredDetails();

      Attachments

        1. 1671.zip
          5 kB
        2. 1671.tar.gz
          0.9 kB

        Activity

          People

            satu.m.makela satu makela
            sinitsyn Ilya Sinitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: