• Boudewijn Rempt's avatar
    add a createActions method to KoToolFactoryBase · 5f91230f
    Boudewijn Rempt authored
    Actions created by a tool instance only exist if there's an open
    document, which means they cannot be configured or placed in
    toolbars. We should only have per-window actions, not per-action
    Creating the actions in the toolfactory instead of the tool when
    the window is created fixes that: now the tools will retrieve
    the actions from the global action collection on activations
    and de-activation, like the freehand tool already did for increase
    and decrease brush size.
    Note: this commit breaks the following tools because it's not
    worth porting hidden tools in any case:
    * artistic text tool
    * odf text tool
    * connection tool
kis_action_registry.cpp 13.4 KB