SetTimelineTitleCommand.h header

#include <ew/core/SetTimelineTitleCommand.h>

Namespace ew::core

SetTimelineTitleCommand class

class ew::core::SetTimelineTitleCommand

Command that renames a timeline. Undo restores the previous title and redo re-applies the new one.

Members

ew::core::SetTimelineTitleCommand::SetTimelineTitleCommand(Timeline &timeline, QString title)

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

ew::core::SetTimelineTitleCommand::~SetTimelineTitleCommand() override

Destroys the command.

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

Records the timeline's current title and applies the new one.

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

Restores the previous title.

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

Returns a short description for the undo/redo UI.