Commit 81178f03 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compiles with KDEFrameworkCompilerSettings

parent ab70dda1
......@@ -12,7 +12,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(FeatureSummary)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
......@@ -32,11 +32,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Activities
)
add_definitions(-DQT_NO_CAST_FROM_ASCII)
add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
# Options
......
......@@ -37,7 +37,7 @@ public:
static Connection* self();
void sendData(const QJsonObject &data);
signals:
Q_SIGNALS:
void dataReceived(const QJsonObject &data);
private:
......
......@@ -47,12 +47,12 @@ public:
void update(const QJsonObject &payload);
signals:
Q_SIGNALS:
void killRequested();
void suspendRequested();
void resumeRequested();
private slots:
private Q_SLOTS:
void doStart();
protected:
......
......@@ -113,7 +113,7 @@ public:
void SetPosition(const QDBusObjectPath &path, qlonglong position);
void OpenUri(const QString &uri);
signals:
Q_SIGNALS:
void canControlChanged();
void playbackStatusChanged();
void canSeekChanged();
......
......@@ -67,7 +67,7 @@ public:
bool pluginEnabled(const QString &subsystem) const;
QJsonObject settingsForPlugin(const QString &subsystem) const;
signals:
Q_SIGNALS:
void changed(const QJsonObject &settings);
private:
......
......@@ -32,7 +32,7 @@ public:
void match(Plasma::RunnerContext &context) override;
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) override;
protected slots:
protected Q_SLOTS:
QMimeData *mimeDataForMatch(const Plasma::QueryMatch &match) override;
QList<QAction *> actionsForMatch(const Plasma::QueryMatch &match) 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