Commit 0c7c567c authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 97239 - better support for including own vCard into mails

(need kdepim)

FIXED-IN: 4.10
BUG: 97239
parent fde66c0c
......@@ -232,6 +232,13 @@ void ContactEditor::loadContact( const Akonadi::Item &item )
d->mMonitor->setItemMonitored( item );
}
KABC::Addressee ContactEditor::contact()
{
KABC::Addressee addr;
d->storeContact( addr, d->mContactMetaData );
return addr;
}
bool ContactEditor::saveContact()
{
if ( d->mMode == EditMode ) {
......
......@@ -129,6 +129,12 @@ class AKONADI_CONTACT_EXPORT ContactEditor : public QWidget
*/
void setDefaultAddressBook( const Akonadi::Collection &addressbook );
/**
* @since 4.10
* @brief ContactEditor::contact
* @return
*/
KABC::Addressee contact();
public Q_SLOTS:
/**
* Loads the @p contact into the editor.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment