SetTaskDescriptionCommand.h header
#include <ew/core/SetTaskDescriptionCommand.h>
Namespace ew::core
SetTaskDescriptionCommand class
class ew::core::SetTaskDescriptionCommand
Command that sets a task's description – the free-text details shown on its board card. Undo restores the previous description and redo re-applies the new one.
Members
ew::core::SetTaskDescriptionCommand::SetTaskDescriptionCommand(Task &task, QString description)
Creates a command that sets task's description to description when applied.
ew::core::SetTaskDescriptionCommand::~SetTaskDescriptionCommand() override
Destroys the command.
void ew::core::SetTaskDescriptionCommand::apply() override
Records the current description and sets the new one.
void ew::core::SetTaskDescriptionCommand::undo() override
Restores the previous description.
QString ew::core::SetTaskDescriptionCommand::description() const override
Returns a short description for the undo/redo UI.