Fix clazy warning about re-defining signal

This commit is contained in:
Albert Vaca Cintora 2023-08-08 20:15:44 +02:00
parent f5b4a174e4
commit 2cfde60ab9
2 changed files with 3 additions and 4 deletions

View file

@ -21,7 +21,6 @@ QString DaemonDbusInterface::activatedService()
DaemonDbusInterface::DaemonDbusInterface(QObject *parent) DaemonDbusInterface::DaemonDbusInterface(QObject *parent)
: OrgKdeKdeconnectDaemonInterface(DaemonDbusInterface::activatedService(), QStringLiteral("/modules/kdeconnect"), QDBusConnection::sessionBus(), parent) : OrgKdeKdeconnectDaemonInterface(DaemonDbusInterface::activatedService(), QStringLiteral("/modules/kdeconnect"), QDBusConnection::sessionBus(), parent)
{ {
connect(this, &OrgKdeKdeconnectDaemonInterface::pairingRequestsChanged, this, &DaemonDbusInterface::pairingRequestsChangedProxy);
connect(this, &OrgKdeKdeconnectDaemonInterface::customDevicesChanged, this, &DaemonDbusInterface::customDevicesChangedProxy); connect(this, &OrgKdeKdeconnectDaemonInterface::customDevicesChanged, this, &DaemonDbusInterface::customDevicesChangedProxy);
} }
@ -152,7 +151,7 @@ RemoteKeyboardDbusInterface::RemoteKeyboardDbusInterface(const QString &deviceId
QDBusConnection::sessionBus(), QDBusConnection::sessionBus(),
parent) parent)
{ {
connect(this, &OrgKdeKdeconnectDeviceRemotekeyboardInterface::remoteStateChanged, this, &RemoteKeyboardDbusInterface::remoteStateChanged); connect(this, &OrgKdeKdeconnectDeviceRemotekeyboardInterface::remoteStateChanged, this, &RemoteKeyboardDbusInterface::remoteStateChangedProxy);
} }
SmsDbusInterface::SmsDbusInterface(const QString &deviceId, QObject *parent) SmsDbusInterface::SmsDbusInterface(const QString &deviceId, QObject *parent)

View file

@ -194,11 +194,11 @@ public:
class KDECONNECTINTERFACES_EXPORT RemoteKeyboardDbusInterface : public OrgKdeKdeconnectDeviceRemotekeyboardInterface class KDECONNECTINTERFACES_EXPORT RemoteKeyboardDbusInterface : public OrgKdeKdeconnectDeviceRemotekeyboardInterface
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool remoteState READ remoteState NOTIFY remoteStateChanged) Q_PROPERTY(bool remoteState READ remoteState NOTIFY remoteStateChangedProxy)
public: public:
explicit RemoteKeyboardDbusInterface(const QString &deviceId, QObject *parent = nullptr); explicit RemoteKeyboardDbusInterface(const QString &deviceId, QObject *parent = nullptr);
Q_SIGNALS: Q_SIGNALS:
void remoteStateChanged(bool state); void remoteStateChangedProxy(bool state);
}; };
class KDECONNECTINTERFACES_EXPORT SmsDbusInterface : public OrgKdeKdeconnectDeviceSmsInterface class KDECONNECTINTERFACES_EXPORT SmsDbusInterface : public OrgKdeKdeconnectDeviceSmsInterface