From c27f30203d11692e145ee2f37aa28aaf46551010 Mon Sep 17 00:00:00 2001 From: tetektoza Date: Wed, 29 Nov 2023 23:14:09 +0100 Subject: [PATCH] Command: Add documentation to existing methods Added documentation to existing methods in Command class. --- source/command.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/command.cpp b/source/command.cpp index ced7a2a1a..5da9b18d8 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;