From 2cfde60ab93bef6e41630a8a13fedd3036bb2ec2 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Tue, 8 Aug 2023 20:15:44 +0200 Subject: [PATCH] Fix clazy warning about re-defining signal --- interfaces/dbusinterfaces.cpp | 3 +-- interfaces/dbusinterfaces.h | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/interfaces/dbusinterfaces.cpp b/interfaces/dbusinterfaces.cpp index 28c8728fb..e11b39c27 100644 --- a/interfaces/dbusinterfaces.cpp +++ b/interfaces/dbusinterfaces.cpp @@ -21,7 +21,6 @@ QString DaemonDbusInterface::activatedService() DaemonDbusInterface::DaemonDbusInterface(QObject *parent) : OrgKdeKdeconnectDaemonInterface(DaemonDbusInterface::activatedService(), QStringLiteral("/modules/kdeconnect"), QDBusConnection::sessionBus(), parent) { - connect(this, &OrgKdeKdeconnectDaemonInterface::pairingRequestsChanged, this, &DaemonDbusInterface::pairingRequestsChangedProxy); connect(this, &OrgKdeKdeconnectDaemonInterface::customDevicesChanged, this, &DaemonDbusInterface::customDevicesChangedProxy); } @@ -152,7 +151,7 @@ RemoteKeyboardDbusInterface::RemoteKeyboardDbusInterface(const QString &deviceId QDBusConnection::sessionBus(), parent) { - connect(this, &OrgKdeKdeconnectDeviceRemotekeyboardInterface::remoteStateChanged, this, &RemoteKeyboardDbusInterface::remoteStateChanged); + connect(this, &OrgKdeKdeconnectDeviceRemotekeyboardInterface::remoteStateChanged, this, &RemoteKeyboardDbusInterface::remoteStateChangedProxy); } SmsDbusInterface::SmsDbusInterface(const QString &deviceId, QObject *parent) diff --git a/interfaces/dbusinterfaces.h b/interfaces/dbusinterfaces.h index 078fd810b..ade41ede7 100644 --- a/interfaces/dbusinterfaces.h +++ b/interfaces/dbusinterfaces.h @@ -194,11 +194,11 @@ public: class KDECONNECTINTERFACES_EXPORT RemoteKeyboardDbusInterface : public OrgKdeKdeconnectDeviceRemotekeyboardInterface { Q_OBJECT - Q_PROPERTY(bool remoteState READ remoteState NOTIFY remoteStateChanged) + Q_PROPERTY(bool remoteState READ remoteState NOTIFY remoteStateChangedProxy) public: explicit RemoteKeyboardDbusInterface(const QString &deviceId, QObject *parent = nullptr); Q_SIGNALS: - void remoteStateChanged(bool state); + void remoteStateChangedProxy(bool state); }; class KDECONNECTINTERFACES_EXPORT SmsDbusInterface : public OrgKdeKdeconnectDeviceSmsInterface