From 6dbe8cc075bb229996e25c67513c8982cebb8467 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 27 Dec 2023 19:10:07 +0100 Subject: [PATCH] [dolphin] Don't rely on emit and signals, use the Q_* macros instead Signed-off-by: Kevin Ottens --- shell_integration/dolphin/ownclouddolphinoverlayplugin.cpp | 2 +- shell_integration/dolphin/ownclouddolphinpluginhelper.cpp | 2 +- shell_integration/dolphin/ownclouddolphinpluginhelper.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell_integration/dolphin/ownclouddolphinoverlayplugin.cpp b/shell_integration/dolphin/ownclouddolphinoverlayplugin.cpp index b74c66549..3639ef351 100644 --- a/shell_integration/dolphin/ownclouddolphinoverlayplugin.cpp +++ b/shell_integration/dolphin/ownclouddolphinoverlayplugin.cpp @@ -98,7 +98,7 @@ private: return; status = tokens[1]; - emit overlaysChanged(QUrl::fromLocalFile(QString::fromUtf8(name)), overlaysForString(status)); + Q_EMIT overlaysChanged(QUrl::fromLocalFile(QString::fromUtf8(name)), overlaysForString(status)); } }; diff --git a/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp b/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp index 6013b60a9..44905a30f 100644 --- a/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp +++ b/shell_integration/dolphin/ownclouddolphinpluginhelper.cpp @@ -112,6 +112,6 @@ void OwncloudDolphinPluginHelper::slotReadyRead() return; } } - emit commandRecieved(line); + Q_EMIT commandRecieved(line); } } diff --git a/shell_integration/dolphin/ownclouddolphinpluginhelper.h b/shell_integration/dolphin/ownclouddolphinpluginhelper.h index 7552b4835..504d19786 100644 --- a/shell_integration/dolphin/ownclouddolphinpluginhelper.h +++ b/shell_integration/dolphin/ownclouddolphinpluginhelper.h @@ -52,7 +52,7 @@ public: QByteArray version() { return _version; } -signals: +Q_SIGNALS: void commandRecieved(const QByteArray &cmd); protected: