Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
1.2.0
-
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();