kdeui: use QAction::setShortcut() instead of setting property

much faster

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-26 04:36:47 +03:00
parent f2e7f97a62
commit b54f55ede4

View file

@ -687,7 +687,7 @@ void KXMLGUIFactoryPrivate::applyShortcutScheme(KXMLGUIClient *client, const QLi
continue;
}
if (action) {
action->setProperty("shortcut", QKeySequence());
action->setShortcut(QKeySequence());
}
}
} else {
@ -704,7 +704,7 @@ void KXMLGUIFactoryPrivate::applyShortcutScheme(KXMLGUIClient *client, const QLi
}
}
if (action) {
action->setProperty("shortcut", QKeySequence());
action->setShortcut(QKeySequence());
}
}
}