Use context argument in lambda connect
ClosedPublic

Authored by gladhorn on Jul 12 2018, 11:03 AM.

Diff Detail

Repository
R104 KScreen
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
gladhorn created this revision.Jul 12 2018, 11:03 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 12 2018, 11:03 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
gladhorn requested review of this revision.Jul 12 2018, 11:03 AM
apol accepted this revision.Jul 12 2018, 12:16 PM
This revision is now accepted and ready to land.Jul 12 2018, 12:16 PM
This revision was automatically updated to reflect the committed changes.
broulik added inline comments.
kded/daemon.cpp
94

You could also connect it to the method directly

connect(action, &QAction::triggered, this, &KScreenDaemon::displayButton);
gladhorn added inline comments.Jul 12 2018, 12:40 PM
kded/daemon.cpp
94

Of course, that was pretty blind of me.