128 QString contextHome = QContactDetail::ContextHome; |
128 QString contextHome = QContactDetail::ContextHome; |
129 QString contextWork = QContactDetail::ContextWork; |
129 QString contextWork = QContactDetail::ContextWork; |
130 QString fieldAddress = QContactEmailAddress::FieldEmailAddress; |
130 QString fieldAddress = QContactEmailAddress::FieldEmailAddress; |
131 |
131 |
132 QStandardItem *noContext = new QStandardItem; |
132 QStandardItem *noContext = new QStandardItem; |
133 noContext->setText(qtTrId("Email")); |
133 noContext->setText(hbTrId("txt_phob_formlabel_val_email")); |
134 noContext->setData(fieldAddress, DetailSubType); |
134 noContext->setData(fieldAddress, DetailSubType); |
135 noContext->setData(CNT_EMAIL_EDITOR_MAXLENGTH, DetailMaxLength); |
135 noContext->setData(CNT_EMAIL_EDITOR_MAXLENGTH, DetailMaxLength); |
136 model->appendRow(noContext); |
136 model->appendRow(noContext); |
137 |
137 |
138 QStandardItem *home = new QStandardItem; |
138 QStandardItem *home = new QStandardItem; |
139 home->setText(qtTrId("Email (home)")); |
139 home->setText(hbTrId("txt_phob_formlabel_val_email_home")); |
140 home->setData(fieldAddress, DetailSubType); |
140 home->setData(fieldAddress, DetailSubType); |
141 home->setData(contextHome, DetailContext); |
141 home->setData(contextHome, DetailContext); |
142 home->setData(CNT_EMAIL_EDITOR_MAXLENGTH, DetailMaxLength); |
142 home->setData(CNT_EMAIL_EDITOR_MAXLENGTH, DetailMaxLength); |
143 model->appendRow(home); |
143 model->appendRow(home); |
144 |
144 |
145 QStandardItem *work = new QStandardItem; |
145 QStandardItem *work = new QStandardItem; |
146 work->setText(qtTrId("Email (work)")); |
146 work->setText(hbTrId("txt_phob_formlabel_val_email_work")); |
147 work->setData(fieldAddress, DetailSubType); |
147 work->setData(fieldAddress, DetailSubType); |
148 work->setData(contextWork, DetailContext); |
148 work->setData(contextWork, DetailContext); |
149 work->setData(CNT_EMAIL_EDITOR_MAXLENGTH, DetailMaxLength); |
149 work->setData(CNT_EMAIL_EDITOR_MAXLENGTH, DetailMaxLength); |
150 model->appendRow(work); |
150 model->appendRow(work); |
151 |
151 |