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