phonebookui/pbkcommonui/src/cntaddressmodel.cpp
changeset 47 7cbcb2896f0e
parent 46 efe85016a067
child 61 d30183af6ca6
equal deleted inserted replaced
46:efe85016a067 47:7cbcb2896f0e
   105     street->setContentWidgetData( "maxLength", CNT_STREET_MAXLENGTH );
   105     street->setContentWidgetData( "maxLength", CNT_STREET_MAXLENGTH );
   106     
   106     
   107     HbDataFormModelItem* postal = new HbDataFormModelItem( HbDataFormModelItem::TextItem, hbTrId("txt_phob_formlabel_postal_codezip_code"));
   107     HbDataFormModelItem* postal = new HbDataFormModelItem( HbDataFormModelItem::TextItem, hbTrId("txt_phob_formlabel_postal_codezip_code"));
   108     postal->setContentWidgetData( "text", aAddress->postcode() );
   108     postal->setContentWidgetData( "text", aAddress->postcode() );
   109     postal->setContentWidgetData( "maxLength", CNT_POSTCODE_MAXLENGTH );
   109     postal->setContentWidgetData( "maxLength", CNT_POSTCODE_MAXLENGTH );
       
   110     postal->setContentWidgetData( "preferDigits", true);
   110     
   111     
   111     HbDataFormModelItem* city = new HbDataFormModelItem( HbDataFormModelItem::TextItem, hbTrId("txt_phob_formlabel_city"));
   112     HbDataFormModelItem* city = new HbDataFormModelItem( HbDataFormModelItem::TextItem, hbTrId("txt_phob_formlabel_city"));
   112     city->setContentWidgetData( "text", aAddress->locality() );
   113     city->setContentWidgetData( "text", aAddress->locality() );
   113     city->setContentWidgetData( "maxLength", CNT_LOCALITY_MAXLENGTH );
   114     city->setContentWidgetData( "maxLength", CNT_LOCALITY_MAXLENGTH );
   114     
   115