28 } |
28 } |
29 |
29 |
30 mCompany = orgList.first(); |
30 mCompany = orgList.first(); |
31 |
31 |
32 HbDataFormModelItem* organization = new HbDataFormModelItem(HbDataFormModelItem::TextItem, |
32 HbDataFormModelItem* organization = new HbDataFormModelItem(HbDataFormModelItem::TextItem, |
33 qtTrId("Company")); |
33 hbTrId("txt_phob_formlabel_company")); |
34 organization->setContentWidgetData("text", mCompany.name()); |
34 organization->setContentWidgetData("text", mCompany.name()); |
35 organization->setContentWidgetData("maxLength", CNT_ORGANIZATION_MAXLENGTH); |
35 organization->setContentWidgetData("maxLength", CNT_ORGANIZATION_MAXLENGTH); |
36 |
36 |
37 HbDataFormModelItem* jobTitle = new HbDataFormModelItem(HbDataFormModelItem::TextItem, qtTrId( |
37 HbDataFormModelItem* jobTitle = new HbDataFormModelItem(HbDataFormModelItem::TextItem, |
38 "Job title")); |
38 hbTrId("txt_phob_formlabel_job_title")); |
39 jobTitle->setContentWidgetData("text", mCompany.title()); |
39 jobTitle->setContentWidgetData("text", mCompany.title()); |
40 jobTitle->setContentWidgetData("maxLength", CNT_JOBTITLE_MAXLENGTH); |
40 jobTitle->setContentWidgetData("maxLength", CNT_JOBTITLE_MAXLENGTH); |
41 |
41 |
42 HbDataFormModelItem* department = new HbDataFormModelItem(HbDataFormModelItem::TextItem, |
42 HbDataFormModelItem* department = new HbDataFormModelItem(HbDataFormModelItem::TextItem, |
43 qtTrId("Department")); |
43 hbTrId("txt_phob_formlabel_department")); |
44 department->setContentWidgetData("text", mCompany.department()); |
44 department->setContentWidgetData("text", mCompany.department()); |
45 department->setContentWidgetData("maxLength", CNT_DEPARTMENT_MAXLENGTH); |
45 department->setContentWidgetData("maxLength", CNT_DEPARTMENT_MAXLENGTH); |
46 |
46 |
47 HbDataFormModelItem* assistant = new HbDataFormModelItem(HbDataFormModelItem::TextItem, qtTrId( |
47 HbDataFormModelItem* assistant = new HbDataFormModelItem(HbDataFormModelItem::TextItem, |
48 "Assistant name")); |
48 hbTrId("txt_phob_formlabel_assistant")); |
49 assistant->setContentWidgetData("text", mCompany.assistantName()); |
49 assistant->setContentWidgetData("text", mCompany.assistantName()); |
50 assistant->setContentWidgetData("maxLength", CNT_ASSISTANT_MAXLENGTH); |
50 assistant->setContentWidgetData("maxLength", CNT_ASSISTANT_MAXLENGTH); |
51 |
51 |
52 HbDataFormModelItem* root = invisibleRootItem(); |
52 HbDataFormModelItem* root = invisibleRootItem(); |
53 appendDataFormItem(organization, root); |
53 appendDataFormItem(organization, root); |