SetTaskBoardCommand.h header
#include <ew/core/SetTaskBoardCommand.h>
Namespace ew::core
SetTaskBoardCommand class
class ew::core::SetTaskBoardCommand
Command that moves a task to a different board (e.g. from "Tasks" to "Submissions"). Undo restores the previous board and redo re-applies the new one.
Members
ew::core::SetTaskBoardCommand::SetTaskBoardCommand(Task &task, QString board)
Creates a command that sets task's board to board when applied.
ew::core::SetTaskBoardCommand::~SetTaskBoardCommand() override
Defaulted.
void ew::core::SetTaskBoardCommand::apply() override
Records the current board and sets the new one.
void ew::core::SetTaskBoardCommand::undo() override
Restores the previous board.
QString ew::core::SetTaskBoardCommand::description() const override
Returns a short description for the undo/redo UI.