void SeasidePerson::setCompanyName(const QString &name) { QContactOrganization companyNameDetail = mContact.detail<QContactOrganization>(); companyNameDetail.setName(name); mContact.saveDetail(&companyNameDetail); emit companyNameChanged(); }
void Customer::setCompanyName(QString companyName) { if (companyName != mCompanyName) { mCompanyName = companyName; emit companyNameChanged(companyName); } }