File indexing completed on 2024-06-16 04:38:14

0001 /*
0002     SPDX-FileCopyrightText: 2010-2022 Mladen Milinkovic <max@smoothware.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "core/undo/undoaction.h"
0008 #include "core/subtitle.h"
0009 
0010 using namespace SubtitleComposer;
0011 
0012 UndoAction::UndoAction(UndoStack::DirtyMode dirtyMode, Subtitle *subtitle, const QString &desc)
0013     : QUndoCommand(desc),
0014       m_dirtyMode(dirtyMode),
0015       m_subtitle(subtitle)
0016 {
0017 }
0018 
0019 UndoAction::~UndoAction()
0020 {
0021 }
0022 
0023 void
0024 UndoAction::undo()
0025 {
0026     redo();
0027 }