Skip to content

[knewfilemenu] Decouple from KActionCollection

Nicolas Fella requested to merge work/newfilemenuactioncollection into master

The KActionCollection passed to the constructor serves two purposes:

The KNewFileMenu inserts itself into the action collection. This can easily be done by the caller if needed

When creating actions we check for some magic actions in the collection to copy their shortcuts. We can do this using more explicit API

See https://phabricator.kde.org/T12207

Merge request reports