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

Adapt against new api

parent 9b8ccc61
......@@ -58,7 +58,7 @@ find_package(KF5Declarative ${KF5_VERSION} CONFIG REQUIRED)
set(MAILCOMMON_LIB_VERSION "5.3.40")
set(GRAVATAR_LIB_VERSION "5.3.40")
set(PIMCOMMON_LIB_VERSION "5.3.41")
set(PIMCOMMON_LIB_VERSION "5.3.52")
set(GRANTLEETHEME_LIB_VERSION "5.3.40")
set(CALENDARSUPPORT_LIB_VERSION "5.3.40")
set(EVENTVIEW_LIB_VERSION "5.3.40")
......
......@@ -41,4 +41,9 @@ PimCommon::GenericPluginInterface *CheckGravatarPlugin::createInterface(KActionC
return interface;
}
bool CheckGravatarPlugin::hasPopupMenuSupport() const
{
return true;
}
#include "checkgravatarplugin.moc"
......@@ -34,6 +34,9 @@ public:
~CheckGravatarPlugin();
PimCommon::GenericPluginInterface *createInterface(KActionCollection *ac, QWidget *parent) Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
};
#endif // CHECKGRAVATARPLUGIN_H
......@@ -138,7 +138,3 @@ void CheckGravatarPluginInterface::slotModifyContactFinished(KJob *job)
}
}
bool CheckGravatarPluginInterface::hasPopupMenuSupport() const
{
return true;
}
......@@ -32,7 +32,6 @@ public:
void createAction(KActionCollection *ac) Q_DECL_OVERRIDE;
void setCurrentItems(const Akonadi::Item::List &items) Q_DECL_OVERRIDE;
PimCommon::GenericPluginInterface::RequireTypes requires() const Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) Q_DECL_OVERRIDE;
private:
......
......@@ -41,4 +41,9 @@ PimCommon::GenericPluginInterface *SendMailPlugin::createInterface(KActionCollec
return interface;
}
bool SendMailPlugin::hasPopupMenuSupport() const
{
return true;
}
#include "sendmailplugin.moc"
......@@ -34,6 +34,7 @@ public:
~SendMailPlugin();
PimCommon::GenericPluginInterface *createInterface(KActionCollection *ac, QWidget *parent) Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
};
#endif // SENDMAILPLUGIN_H
......@@ -97,8 +97,3 @@ void SendMailPluginInterface::slotSendMails(const QStringList &emails)
QDesktopServices::openUrl(url);
}
}
bool SendMailPluginInterface::hasPopupMenuSupport() const
{
return true;
}
......@@ -32,7 +32,6 @@ public:
void createAction(KActionCollection *ac) Q_DECL_OVERRIDE;
void setCurrentItems(const Akonadi::Item::List &items) Q_DECL_OVERRIDE;
PimCommon::GenericPluginInterface::RequireTypes requires() const Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) Q_DECL_OVERRIDE;
private:
......
......@@ -41,4 +41,9 @@ PimCommon::GenericPluginInterface *SendVcardsPlugin::createInterface(KActionColl
return interface;
}
bool SendVcardsPlugin::hasPopupMenuSupport() const
{
return true;
}
#include "sendvcardsplugin.moc"
......@@ -34,6 +34,7 @@ public:
~SendVcardsPlugin();
PimCommon::GenericPluginInterface *createInterface(KActionCollection *ac, QWidget *parent) Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
};
#endif // SENDVCARDSPLUGIN_H
......@@ -37,11 +37,6 @@ SendVcardsPluginInterface::~SendVcardsPluginInterface()
}
bool SendVcardsPluginInterface::hasPopupMenuSupport() const
{
return true;
}
void SendVcardsPluginInterface::updateActions(int numberOfSelectedItems, int numberOfSelectedCollections)
{
Q_UNUSED(numberOfSelectedCollections);
......
......@@ -32,7 +32,6 @@ public:
void createAction(KActionCollection *ac) Q_DECL_OVERRIDE;
void setCurrentItems(const Akonadi::Item::List &items) Q_DECL_OVERRIDE;
PimCommon::GenericPluginInterface::RequireTypes requires() const Q_DECL_OVERRIDE;
bool hasPopupMenuSupport() const Q_DECL_OVERRIDE;
void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) Q_DECL_OVERRIDE;
private:
......
Supports Markdown
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