equal
deleted
inserted
replaced
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 { |