qtinternetradio/ui/src/iropenwebaddressview.cpp
changeset 11 f683e24efca3
parent 8 3b03c28289e6
child 12 608f67c22514
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
   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 }