SetTaskTitleCommand.h header

#include <ew/core/SetTaskTitleCommand.h>

Namespace ew::core

SetTaskTitleCommand class

class ew::core::SetTaskTitleCommand

Command that sets a task's title. Undo restores the previous title and redo re-applies the new one.

Members

ew::core::SetTaskTitleCommand::SetTaskTitleCommand(Task &task, QString title)

Creates a command that sets task's title to title when applied.

ew::core::SetTaskTitleCommand::~SetTaskTitleCommand() override

Destroys the command.

void ew::core::SetTaskTitleCommand::apply() override

Records the current title and sets the new one.

void ew::core::SetTaskTitleCommand::undo() override

Restores the previous title.

QString ew::core::SetTaskTitleCommand::description() const override

Returns a short description for the undo/redo UI.