Commit bc533fd3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to react when we click on url and other

parent b8aa184d
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
using KContacts::VCardConverter; using KContacts::VCardConverter;
using KContacts::Addressee; using KContacts::Addressee;
#include <ContactDefaultActions>
#include <KLocalizedString> #include <KLocalizedString>
#include <LibkdepimAkonadi/AddContactJob> #include <LibkdepimAkonadi/AddContactJob>
...@@ -34,6 +35,7 @@ using KContacts::Addressee; ...@@ -34,6 +35,7 @@ using KContacts::Addressee;
#include <QPushButton> #include <QPushButton>
#include <KGuiItem> #include <KGuiItem>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QDesktopServices>
using namespace MessageViewer; using namespace MessageViewer;
...@@ -60,6 +62,9 @@ VCardViewer::VCardViewer(QWidget *parent, const QByteArray &vCard) ...@@ -60,6 +62,9 @@ VCardViewer::VCardViewer(QWidget *parent, const QByteArray &vCard)
KGuiItem::assign(mUser3Button, KGuiItem(i18n("&Previous Card"))); KGuiItem::assign(mUser3Button, KGuiItem(i18n("&Previous Card")));
mContactViewer = new KAddressBookGrantlee::GrantleeContactViewer(this); mContactViewer = new KAddressBookGrantlee::GrantleeContactViewer(this);
Akonadi::ContactDefaultActions *actions = new Akonadi::ContactDefaultActions( this );
actions->connectToView(mContactViewer);
mContactViewer->setForceDisableQRCode(true); mContactViewer->setForceDisableQRCode(true);
mainLayout->addWidget(mContactViewer); mainLayout->addWidget(mContactViewer);
mainLayout->addWidget(buttonBox); mainLayout->addWidget(buttonBox);
......
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