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