X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Frazorclipcommand.cpp;h=023f39f8c7ab8d33253aa4d52c80bf012ff3e696;hb=e8d7fcdcf399fe74a40a14db5d989d774e6f1d09;hp=071351f91ecfa93077a4384ac4ec5040d7325a9d;hpb=cd85961a9520f2f3c909e889dacd8de539468b89;p=kdenlive diff --git a/src/razorclipcommand.cpp b/src/razorclipcommand.cpp index 071351f9..023f39f8 100644 --- a/src/razorclipcommand.cpp +++ b/src/razorclipcommand.cpp @@ -23,21 +23,27 @@ #include -RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), m_cutTime(cutTime), m_doIt(doIt) { +RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt, QUndoCommand * parent) : + QUndoCommand(parent), + m_view(view), + m_info(info), + m_cutTime(cutTime), + m_doIt(doIt) +{ setText(i18n("Razor clip")); } // virtual -void RazorClipCommand::undo() { +void RazorClipCommand::undo() +{ // kDebug()<<"---- undoing action"; - m_doIt = true; m_view->cutClip(m_info, m_cutTime, false); } // virtual -void RazorClipCommand::redo() { +void RazorClipCommand::redo() +{ // kDebug() << "---- redoing action cut: " << m_cutTime.frames(25); - if (m_doIt) - m_view->cutClip(m_info, m_cutTime, true); + if (m_doIt) m_view->cutClip(m_info, m_cutTime, true); m_doIt = true; }