Skip to content

refactor actions to not use the KShortcutsDialog from KXmlGui

George Florea Bănuș requested to merge refactor-actions into master

Actions are now created with an Instantiator from actionsModel, when an action is triggered the actionsModel signalEmitter function is called with the action's objectName. The objectName is used to invoke the signal corresponding to the action, these signals are handled in a Connections item in the actions.qml file. Actions are also added to the actions QQmlPropertyMap so they are easily accessible.

The actionsModel is also used for changing the actions shortcuts in ShortcutsSettings.qml


Only the actions.qml, actionsModel.h/cpp and ShortcutsSettings.qml are of importance, the rest of the changes are just to make sure the app works correctly with the changes.

Merge request reports