phonebookui/pbkcommonui/src/cntemaileditorviewitem.cpp
changeset 59 a642906a277a
parent 46 efe85016a067
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    67     QString d = address.emailAddress();
    67     QString d = address.emailAddress();
    68     mItem->editor()->setText( address.emailAddress() );
    68     mItem->editor()->setText( address.emailAddress() );
    69     
    69     
    70     connect( mItem->comboBox(), SIGNAL(currentIndexChanged(int)), this, SLOT(indexChanged(int)) );
    70     connect( mItem->comboBox(), SIGNAL(currentIndexChanged(int)), this, SLOT(indexChanged(int)) );
    71     connect( mItem->editor(), SIGNAL(textChanged(QString)),this, SLOT(textChanged(QString)) );
    71     connect( mItem->editor(), SIGNAL(textChanged(QString)),this, SLOT(textChanged(QString)) );
    72         
    72     
       
    73     // Naming UI components for automation testability
       
    74     QString editorObjName = detail.definitionName() + " line edit %1";
       
    75     mItem->editor()->setObjectName(editorObjName.arg(modelIndex().row()));
       
    76     
       
    77     QString comboBoxObjName = detail.definitionName() + " combo box %1";
       
    78     mItem->comboBox()->setObjectName(comboBoxObjName.arg(modelIndex().row()));
    73     return mItem;
    79     return mItem;
    74     }
    80     }
    75     
    81     
    76 void CntEmailEditorViewItem::indexChanged( int aIndex )
    82 void CntEmailEditorViewItem::indexChanged( int aIndex )
    77     {
    83     {