move KActionCollection lower in tier
Closed, ResolvedPublic

Description

since QAction is usable from QML now , move it somewhere (kguiaddons?) where can be used from qml without widgets deps

mart created this task.Mar 27 2021, 5:10 PM
ervin moved this task from Needs Input to In Discussion on the KF6 board.Mar 28 2021, 9:10 AM
davidedmundson added a subscriber: davidedmundson.EditedMar 28 2021, 9:50 AM

Use in frameworks:

  • bookmarks Internally it can just use a list then leave it to the caller to add to an action collection.

Nico is already on the case:

https://invent.kde.org/frameworks/kbookmarks/-/commit/0c888e2f8098a41d5597a61824180674b8b2111a

This is a pattern that can be used elsewhere

  • knewstuff - All kaction stuff is deprecated already!
  • kio - we can follow the bookmarks pattern
  • kross - can be ingored
  • ktexteditor - uses kxmlgui anyway
  • plasma framwork Usage can easily just be a QHash<QString, QAction*> + a bit of magic with component names for globalshortcuts. Maybe with a wrapper with an onchanged signal.

Conclusion: It *can* be moved down, but it doesn't give us anything.
The parts it provides over a custom list are inherently widget and kxmlgui specific.

davidedmundson closed this task as Resolved.Mar 28 2021, 10:07 AM