diff --git a/source/command.cpp b/source/command.cpp index ced7a2a1..5da9b18d 100644 --- a/source/command.cpp +++ b/source/command.cpp @@ -1,10 +1,21 @@ #include "command.h" +/** + * @brief Sets if a command is obsolete or not + * + * This function sets if a command is obsolete or not. + * This flag will be used in UndoStack to check if a + * command should be popped whenever there will be undo/redo + * operation used, or user pushes any command onto the stack. + */ void Command::setObsolete(bool isObsolete) { m_isObsolete = isObsolete; } +/** + * @brief Returns if a command is obsolete or not + */ bool Command::isObsolete() const { return m_isObsolete;