166 d->m_details.clear(); |
166 d->m_details.clear(); |
167 |
167 |
168 // insert the contact's display label detail. |
168 // insert the contact's display label detail. |
169 QContactDisplayLabel contactLabel; |
169 QContactDisplayLabel contactLabel; |
170 contactLabel.setValue(QContactDisplayLabel::FieldLabel, QString()); |
170 contactLabel.setValue(QContactDisplayLabel::FieldLabel, QString()); |
171 contactLabel.d->m_id = 1; |
|
172 contactLabel.d->m_access = QContactDetail::Irremovable | QContactDetail::ReadOnly; |
171 contactLabel.d->m_access = QContactDetail::Irremovable | QContactDetail::ReadOnly; |
173 d->m_details.insert(0, contactLabel); |
172 d->m_details.insert(0, contactLabel); |
174 |
173 |
175 // and the contact type detail. |
174 // and the contact type detail. |
176 QContactType contactType; |
175 QContactType contactType; |
177 contactType.setType(QContactType::TypeContact); |
176 contactType.setType(QContactType::TypeContact); |
178 contactType.d->m_id = 2; |
|
179 contactType.d->m_access = QContactDetail::Irremovable; |
177 contactType.d->m_access = QContactDetail::Irremovable; |
180 d->m_details.insert(1, contactType); |
178 d->m_details.insert(1, contactType); |
181 } |
179 } |
182 |
180 |
183 /*! Replace the contents of this QContact with \a other */ |
181 /*! Replace the contents of this QContact with \a other */ |