-MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, GenTime pos, int oldPos, int newPos, QUndoCommand * parent) :
- QUndoCommand(parent),
- m_view(view),
- m_track(track),
- m_oldindex(oldPos),
- m_newindex(newPos),
- m_pos(pos)
+MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList<int> &oldPos, int newPos, QUndoCommand * parent) :
+ QUndoCommand(parent),
+ m_view(view),
+ m_track(track),
+ m_oldindex(oldPos),
+ m_pos(pos)
/* QString effectName;
QDomElement namenode = effect.firstChildElement("name");
if (!namenode.isNull()) effectName = i18n(namenode.text().toUtf8().data());
/* QString effectName;
QDomElement namenode = effect.firstChildElement("name");
if (!namenode.isNull()) effectName = i18n(namenode.text().toUtf8().data());
if (other->id() != id()) return false;
if (m_track != static_cast<const MoveEffectCommand*>(other)->m_track) return false;
if (m_pos != static_cast<const MoveEffectCommand*>(other)->m_pos) return false;
m_oldindex = static_cast<const MoveEffectCommand*>(other)->m_oldindex;
m_newindex = static_cast<const MoveEffectCommand*>(other)->m_newindex;
return true;
if (other->id() != id()) return false;
if (m_track != static_cast<const MoveEffectCommand*>(other)->m_track) return false;
if (m_pos != static_cast<const MoveEffectCommand*>(other)->m_pos) return false;
m_oldindex = static_cast<const MoveEffectCommand*>(other)->m_oldindex;
m_newindex = static_cast<const MoveEffectCommand*>(other)->m_newindex;
return true;