* \brief Begin an undo stack macro (series of commands) */
| 1067 | * \brief Begin an undo stack macro (series of commands) |
| 1068 | */ |
| 1069 | void AbstractAspect::beginMacro(const QString& text) { |
| 1070 | if (!d->m_undoAware || (project() && !project()->isUndoAware())) |
| 1071 | return; |
| 1072 | |
| 1073 | QUndoStack* stack = undoStack(); |
| 1074 | if (stack) |
| 1075 | stack->beginMacro(text); |
| 1076 | } |
| 1077 | |
| 1078 | /** |
| 1079 | * \brief End the current undo stack macro |
no test coverage detected