Details
-
Suggestion
-
Resolution: Out of scope
-
P2: Important
-
4.3.2
-
None
Description
Currently it is not possible to change the text of a macro once beginMacro() has been called. This makes it impossible to do something like this: (where it would be a very expensive operation to find out the cnt before the actuall computation within the loop)
...
stack->beginMacro();
int cnt = 0;
foreach(item, item_list)
stack->endMacro(QString("Modified %1 items").arg(cnt));
...
So either (1) an additonal function endMacro(QString) or (2) a return value (QUndoCommand *) for beginMacro() would be nice.
#2 is probably not BC. Patch for #1 is attached.