--- a/phonebookui/pbkcommonui/src/cntphonenumberviewitem.cpp Wed Jul 21 11:37:51 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cntphonenumberviewitem.cpp Fri Jul 23 12:43:48 2010 +0300
@@ -135,6 +135,12 @@
connect( mItem->comboBox(), SIGNAL(currentIndexChanged(int)), this, SLOT(indexChanged(int)) );
connect( mItem->editor(), SIGNAL(textChanged(QString)),this, SLOT(textChanged(QString)) );
+ // Naming UI components for automation testability
+ QString editorObjName = detail.definitionName() + " line edit %1";
+ mItem->editor()->setObjectName(editorObjName.arg(modelIndex().row()));
+
+ QString comboBoxObjName = detail.definitionName() + " combo box %1";
+ mItem->comboBox()->setObjectName(comboBoxObjName.arg(modelIndex().row()));
return mItem;
}
@@ -157,6 +163,7 @@
QContactPhoneNumber number;
number.setSubTypes( aSubType );
number.setContexts( aContext );
+ number.setNumber( mItem->editor()->text() );
aItem->setDetail( number );
}
else