#include <KLocale>
-EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) : m_view(view), m_track(track), m_pos(pos), m_index(effectIndex), m_oldkfr(oldkeyframes), m_newkfr(newkeyframes), m_doIt(doIt)
+EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) :
+ QUndoCommand(),
+ m_view(view),
+ m_oldkfr(oldkeyframes),
+ m_newkfr(newkeyframes),
+ m_track(track),
+ m_index(effectIndex),
+ m_pos(pos),
+ m_doIt(doIt)
{
int prev = m_oldkfr.split(';', QString::SkipEmptyParts).count();
int next = m_newkfr.split(';', QString::SkipEmptyParts).count();
void EditKeyFrameCommand::undo()
{
m_view->editKeyFrame(m_pos, m_track, m_index, m_oldkfr);
+ m_doIt = true;
}
// virtual
void EditKeyFrameCommand::redo()