Make moving a marker undoable

This commit is contained in:
Thomas Wilshaw
2021-10-22 22:15:56 +01:00
parent d04d165451
commit c8552ad184
5 changed files with 50 additions and 1 deletions
+6
View File
@@ -46,6 +46,12 @@ void TimelineMarker::set_time(const TimeRange &time)
emit TimeChanged(time_);
}
void TimelineMarker::set_time_undo(TimeRange time) {
UndoCommand *command = new MarkerChangeTimeCommand(Core::instance()->GetActiveProject(), this, time);
Core::instance()->undo_stack()->push(command);
}
const QString &TimelineMarker::name() const
{
return name_;