KUndo2Command: Add an addCommand() method to make it possible to create macro…

Authored by danders on Feb 5 2019, 7:42 AM.

Description

KUndo2Command: Add an addCommand() method to make it possible to create macro commands

This is similar to creating a command with a parent,
except that you do not need control of the creation process.
Also similar to macros, but you have control over when to call redo()
and when to add to the stack.

Details