daemon/kdeconnectd: Use QOverload with undeprecated signal
This will work in both KF5 and KF6
This commit is contained in:
parent
1ca156c5a0
commit
8558431e68
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue