SetTaskDueDateCommand.h header
#include <ew/core/SetTaskDueDateCommand.h>
Namespace ew::core
SetTaskDueDateCommand class
class ew::core::SetTaskDueDateCommand
Command that sets a task's due date (an invalid date clears it). Undo restores the previous due date and redo re-applies the new one.
Members
ew::core::SetTaskDueDateCommand::SetTaskDueDateCommand(Task &task, QDate dueDate)
Creates a command that sets task's due date to dueDate when applied.
ew::core::SetTaskDueDateCommand::~SetTaskDueDateCommand() override
Destroys the command.
void ew::core::SetTaskDueDateCommand::apply() override
Records the current due date and sets the new one.
void ew::core::SetTaskDueDateCommand::undo() override
Restores the previous due date.
QString ew::core::SetTaskDueDateCommand::description() const override
Returns a short description for the undo/redo UI.