28 if (m_name.isEmpty()) {
29 qCWarning(KWIN_CORE) <<
"ShortcutHandler.name is required";
32 if (m_text.isEmpty()) {
33 qCWarning(KWIN_CORE) <<
"ShortcutHandler.text is required";
37 QAction *action =
new QAction(
this);
39 action->setObjectName(m_name);
40 action->setText(m_text);
41 KGlobalAccel::self()->setShortcut(action, {m_keySequence});