Fix compilation on newer TpQt

This commit is contained in:
David Edmundson 2015-09-11 12:08:41 +02:00
parent 25d19fe9ca
commit 75b8e24727
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes)
find_package(Qca-qt5 2.1.0 REQUIRED)
find_package(TelepathyQt5 0.9.5)
find_package(TelepathyQt5Service 0.9.5)
find_package(TelepathyQt5Service 0.9.7)
if (TelepathyQt5_FOUND)
add_definitions(-DHAVE_TELEPATHY)
endif()

View file

@ -48,7 +48,7 @@ ConnectConnection::ConnectConnection(const QDBusConnection &dbusConnection, cons
qDebug() << "making new connection";
/* Connection.Interface.Contacts */
contactsIface = Tp::BaseConnectionContactsInterface::create();
contactsIface = Tp::BaseConnectionContactsInterface::create(this);
contactsIface->setGetContactAttributesCallback(Tp::memFun(this, &ConnectConnection::getContactAttributes));
contactsIface->setContactAttributeInterfaces(QStringList()
<< TP_QT_IFACE_CONNECTION