phonebookui/pbkcommonui/src/cnturleditorviewitem.cpp
changeset 37 fd64c38c277d
parent 31 2a11b5b00470
child 46 efe85016a067
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
   117     QString contextHome = QContactDetail::ContextHome;
   117     QString contextHome = QContactDetail::ContextHome;
   118     QString contextWork = QContactDetail::ContextWork;
   118     QString contextWork = QContactDetail::ContextWork;
   119     QString fieldAddress = QContactUrl::FieldUrl;
   119     QString fieldAddress = QContactUrl::FieldUrl;
   120         
   120         
   121     QStandardItem *noContext = new QStandardItem;
   121     QStandardItem *noContext = new QStandardItem;
   122     noContext->setText(qtTrId("URL"));
   122     noContext->setText(hbTrId("txt_phob_formlabel_val_url"));
   123     noContext->setData(fieldAddress, DetailSubType);
   123     noContext->setData(fieldAddress, DetailSubType);
   124     noContext->setData(CNT_URL_EDITOR_MAXLENGTH, DetailMaxLength);
   124     noContext->setData(CNT_URL_EDITOR_MAXLENGTH, DetailMaxLength);
   125     model->appendRow(noContext);
   125     model->appendRow(noContext);
   126            
   126            
   127     QStandardItem *home = new QStandardItem;
   127     QStandardItem *home = new QStandardItem;
   128     home->setText(qtTrId("URL (home)"));
   128     home->setText(hbTrId("txt_phob_formlabel_val_url_home"));
   129     home->setData(fieldAddress, DetailSubType);
   129     home->setData(fieldAddress, DetailSubType);
   130     home->setData(contextHome, DetailContext);
   130     home->setData(contextHome, DetailContext);
   131     home->setData(CNT_URL_EDITOR_MAXLENGTH, DetailMaxLength);
   131     home->setData(CNT_URL_EDITOR_MAXLENGTH, DetailMaxLength);
   132     model->appendRow(home);
   132     model->appendRow(home);
   133            
   133            
   134     QStandardItem *work = new QStandardItem;
   134     QStandardItem *work = new QStandardItem;
   135     work->setText(qtTrId("URL (work)"));
   135     work->setText(hbTrId("txt_phob_formlabel_val_url_work"));
   136     work->setData(fieldAddress, DetailSubType);
   136     work->setData(fieldAddress, DetailSubType);
   137     work->setData(contextWork, DetailContext);
   137     work->setData(contextWork, DetailContext);
   138     work->setData(CNT_URL_EDITOR_MAXLENGTH, DetailMaxLength);
   138     work->setData(CNT_URL_EDITOR_MAXLENGTH, DetailMaxLength);
   139     model->appendRow(work);
   139     model->appendRow(work);
   140     
   140