196 /* |
196 /* |
197 * Description : initialize the details. |
197 * Description : initialize the details. |
198 */ |
198 */ |
199 void IROpenWebAddressView::initDataForm() |
199 void IROpenWebAddressView::initDataForm() |
200 { |
200 { |
201 iUrl = new HbDataFormModelItem( |
201 #ifdef SUBTITLE_STR_BY_LOCID |
202 HbDataFormModelItem::TextItem, hbTrId("txt_irad_formlabel_station_url")); |
202 iUrl = new HbDataFormModelItem(HbDataFormModelItem::TextItem, hbTrId("txt_irad_formlabel_station_address")); |
|
203 #else |
|
204 iUrl = new HbDataFormModelItem(HbDataFormModelItem::TextItem, hbTrId("Station address")); |
|
205 #endif |
203 iUrl->setContentWidgetData("maxLength",MAX_URL_CHARACTOR_NUMBER); |
206 iUrl->setContentWidgetData("maxLength",MAX_URL_CHARACTOR_NUMBER); |
204 iModel->appendDataFormItem(iUrl); |
207 iModel->appendDataFormItem(iUrl); |
205 |
208 |
206 iName = new HbDataFormModelItem( |
209 iName = new HbDataFormModelItem( |
207 HbDataFormModelItem::TextItem, hbTrId("txt_irad_formlabel_station_name")); |
210 HbDataFormModelItem::TextItem, hbTrId("txt_irad_formlabel_station_name")); |
|
211 iName->setContentWidgetData("maxLength", MAX_URL_CHARACTOR_NUMBER); |
208 iModel->appendDataFormItem(iName); |
212 iModel->appendDataFormItem(iName); |
209 |
213 |
210 iForm->addConnection(iUrl, SIGNAL(textChanged(const QString&)), |
214 iForm->addConnection(iUrl, SIGNAL(textChanged(const QString&)), |
211 this, SLOT(urlEditorTextChanged(const QString&))); |
215 this, SLOT(urlEditorTextChanged(const QString&))); |
212 } |
216 } |