daemon/kdeconnectd: Use QOverload with undeprecated signal

This will work in both KF5 and KF6
This commit is contained in:
Alexander Lohnau 2023-04-17 21:43:31 +02:00
parent 1ca156c5a0
commit 8558431e68

View file

@ -16,10 +16,10 @@
#include <KAboutData> #include <KAboutData>
#include <KDBusService> #include <KDBusService>
#include <KIO/Global>
#include <KLocalizedString> #include <KLocalizedString>
#include <KNotification> #include <KNotification>
#include <KWindowSystem> #include <KWindowSystem>
#include <KIO/Global>
#include <dbushelper.h> #include <dbushelper.h>
@ -61,7 +61,7 @@ public:
oc.openConfiguration(deviceId); oc.openConfiguration(deviceId);
}; };
connect(notification, &KNotification::action3Activated, openSettings); connect(notification, &KNotification::action3Activated, openSettings);
connect(notification, QOverload<>::of(&KNotification::activated), openSettings); connect(notification, QOverload<unsigned int>::of(&KNotification::activated), openSettings);
notification->sendEvent(); notification->sendEvent();
} }