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