phonebookui/pbkcommonui/src/cnturleditorviewitem.cpp
changeset 59 a642906a277a
parent 46 efe85016a067
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    55     constructSubTypeModel( detail.contexts() );
    55     constructSubTypeModel( detail.contexts() );
    56     
    56     
    57     mItem->editor()->setText( detail.url() );
    57     mItem->editor()->setText( detail.url() );
    58     connect( mItem->comboBox(), SIGNAL(currentIndexChanged(int)), this, SLOT(indexChanged(int)) );
    58     connect( mItem->comboBox(), SIGNAL(currentIndexChanged(int)), this, SLOT(indexChanged(int)) );
    59     connect( mItem->editor(), SIGNAL(textChanged(QString)),this, SLOT(textChanged(QString)) );
    59     connect( mItem->editor(), SIGNAL(textChanged(QString)),this, SLOT(textChanged(QString)) );
    60         
    60     
       
    61     // Naming UI components for automation testability
       
    62     QString editorObjName = detail.definitionName() + " line edit %1";
       
    63     mItem->editor()->setObjectName(editorObjName.arg(modelIndex().row()));
       
    64     
       
    65     QString comboBoxObjName = detail.definitionName() + " combo box %1";
       
    66     mItem->comboBox()->setObjectName(comboBoxObjName.arg(modelIndex().row()));
    61     return mItem;
    67     return mItem;
    62 }
    68 }
    63     
    69     
    64 void CntUrlEditorViewItem::indexChanged( int aIndex )
    70 void CntUrlEditorViewItem::indexChanged( int aIndex )
    65 {
    71 {