since QAction is usable from QML now , move it somewhere (kguiaddons?) where can be used from qml without widgets deps
Description
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | mart | T14299 move KActionCollection lower in tier | ||
Open | None | T12205 Port KDirOperator away from KActionCollection |
Comment Actions
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.