Commit 7c2545fc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile without deprecated method

parent 3742d361
Pipeline #41211 failed with stage
in 7 minutes and 55 seconds
......@@ -67,7 +67,7 @@ option(KDEPIM_RUN_AKONADI_TEST "Enable autotest based on Akonadi." TRUE)
# Compiler flags
add_definitions(-DTRANSLATION_DOMAIN=\"akonadi_search\")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054C00)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054D00)
add_definitions(-DQT_NO_FOREACH)
add_definitions(-DQT_NO_KEYWORDS)
......
......@@ -31,8 +31,12 @@
Q_DECLARE_METATYPE(KContacts::Addressee *)
PIMContactsRunner::PIMContactsRunner(QObject *parent, const QVariantList &args)
PIMContactsRunner::PIMContactsRunner(QObject *parent, const KPluginMetaData& metaData, const QVariantList &args)
#if KRUNNER_VERSION >= QT_VERSION_CHECK(5, 77, 0)
: Plasma::AbstractRunner(parent, metaData, args)
#else
: Plasma::AbstractRunner(parent, args)
#endif
{
setObjectName(QStringLiteral("PIMContactsRunner"));
setSpeed(Plasma::AbstractRunner::SlowSpeed);
......
......@@ -9,13 +9,18 @@
#define PIMCONTACTSRUNNER_H
#include <KRunner/AbstractRunner>
#include <krunner_version.h>
class PIMContactsRunner : public Plasma::AbstractRunner
{
Q_OBJECT
public:
#if KRUNNER_VERSION >= QT_VERSION_CHECK(5, 77, 0)
explicit PIMContactsRunner(QObject *parent, const KPluginMetaData& metaData, const QVariantList &args);
#else
explicit PIMContactsRunner(QObject *parent, const QVariantList &args);
#endif
~PIMContactsRunner() override;
void reloadConfiguration() override;
......
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