X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcommands%2Fmovetransitioncommand.cpp;h=9520c6dc7cd350a0de55ae872b5b2091b15e9944;hb=refs%2Fheads%2Fmaster;hp=f825ed77c8b7cd987a52483b42402943baf2090a;hpb=020035a721ab682e4171443afaf10b5efa189586;p=kdenlive diff --git a/src/commands/movetransitioncommand.cpp b/src/commands/movetransitioncommand.cpp index f825ed77..9520c6dc 100644 --- a/src/commands/movetransitioncommand.cpp +++ b/src/commands/movetransitioncommand.cpp @@ -18,14 +18,14 @@ #include "movetransitioncommand.h" #include "customtrackview.h" -#include - -MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent) : - QUndoCommand(parent), - m_view(view), - m_startPos(start), - m_endPos(end), - m_doIt(doIt) +#include + +MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent) : + QUndoCommand(parent), + m_view(view), + m_startPos(start), + m_endPos(end), + m_doIt(doIt) { setText(i18n("Move transition")); if (parent) { @@ -38,7 +38,7 @@ MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemIn // virtual void MoveTransitionCommand::undo() { -// kDebug()<<"---- undoing action"; + // kDebug()<<"---- undoing action"; m_doIt = true; m_view->moveTransition(m_endPos, m_startPos, m_refresh); } @@ -46,7 +46,8 @@ void MoveTransitionCommand::undo() void MoveTransitionCommand::redo() { //kDebug() << "---- redoing action"; - if (m_doIt) m_view->moveTransition(m_startPos, m_endPos, m_refresh); + if (m_doIt) + m_view->moveTransition(m_startPos, m_endPos, m_refresh); m_doIt = true; }