Set componentDisplayName for shortcut migration

Otherwise the binary name is used as display name, causing all kwin
shortcuts to be registered under kwin-6.0-delete-desktop-switching-shortcuts
This commit is contained in:
Nicolas Fella 2024-02-19 21:31:58 +01:00
parent 4045b3b389
commit afa450b97a

View file

@ -25,6 +25,7 @@ int main(int argc, char **argv)
QAction action;
action.setObjectName(actionName);
action.setProperty("componentName", QStringLiteral("kwin"));
action.setProperty("componentDisplayName", QStringLiteral("KWin"));
KGlobalAccel::self()->setShortcut(&action, {QKeySequence()}, KGlobalAccel::NoAutoloading);
KGlobalAccel::self()->removeAllShortcuts(&action);
}