Commit 5327746f authored by Frederik Gladhorn's avatar Frederik Gladhorn

Use normal connection to slot instead of lambda

There is no point in creating the lambda, simplify.
As suggested by	Kai Uwe Broulik.
parent f62f316a
......@@ -91,7 +91,7 @@ void KScreenDaemon::init()
action->setText(i18n("Switch Display" ));
QList<QKeySequence> switchDisplayShortcuts({Qt::Key_Display, Qt::MetaModifier + Qt::Key_P});
KGlobalAccel::self()->setGlobalShortcut(action, switchDisplayShortcuts);
connect(action, &QAction::triggered, this, [&](bool) { displayButton(); });
connect(action, &QAction::triggered, this, &KScreenDaemon::displayButton);
new KScreenAdaptor(this);
// Initialize OSD manager to register its dbus interface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment