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