|
|
|
@ -153,9 +153,9 @@ void MemberEditDlg::slotSelectFromAddrBook()
|
|
|
|
|
TQMap<TQString, TQString> uidMap;
|
|
|
|
|
TQString name;
|
|
|
|
|
TQStringList result;
|
|
|
|
|
KABC::AddressBook *addressBook = KABC::StdAddressBook::self();
|
|
|
|
|
KABC::AddressBook::ConstIterator it;
|
|
|
|
|
KABC::AddressBook::ConstIterator end = addressBook->end();
|
|
|
|
|
TDEABC::AddressBook *addressBook = TDEABC::StdAddressBook::self();
|
|
|
|
|
TDEABC::AddressBook::ConstIterator it;
|
|
|
|
|
TDEABC::AddressBook::ConstIterator end = addressBook->end();
|
|
|
|
|
for( it = addressBook->begin(); it != end; ++it )
|
|
|
|
|
{
|
|
|
|
|
result.append((*it).assembledName());
|
|
|
|
@ -169,7 +169,7 @@ void MemberEditDlg::slotSelectFromAddrBook()
|
|
|
|
|
listDlg.setCaption(i18n("Select Member"));
|
|
|
|
|
if (!listDlg.exec()) return;
|
|
|
|
|
name = listDlg.getEntry();
|
|
|
|
|
KABC::Addressee entry = addressBook->findByUid(uidMap[name]);
|
|
|
|
|
TDEABC::Addressee entry = addressBook->findByUid(uidMap[name]);
|
|
|
|
|
nameCombo->insertItem(name, 1);
|
|
|
|
|
nameCombo->setCurrentItem(1);
|
|
|
|
|
emailEdit->setText(entry.emails()[0]);
|
|
|
|
|