To replace the actionCollection() method. This will allow us to get rid of the KActionCollection and thus KXmlGui dependency
- Group Reviewers
- Maniphest Tasks
- T12205: Port KDirOperator away from KActionCollection
Tested with patches for KDevelop (https://invent.kde.org/kde/kdevelop/merge_requests/83/), Kate (https://invent.kde.org/kde/kate/merge_requests/54) and Kile (D26426)
Imho the API documentation should be improved (I am aware it was copied).
Returns a map of all available actions. The action map remains unchanged throughout the entire lifetime of the diroperator instance. The key of the map can be used to obtain the respective action. The full list of available actions is as follows: - popupMenu: ... - up: ...
Interesting suggestion. We're used to using names for actions everywhere, but in this specific case an enum would do indeed.
When this is ported away from KActionCollection in the future, one should remember to do action->setObjectName("...") for code that actually wants strings (like KActionCollection).