]> git.sesse.net Git - kdenlive/blobdiff - src/razorclipcommand.cpp
Use MLT's '@' format to pass arithmetic formula in dar
[kdenlive] / src / razorclipcommand.cpp
index c7fd0745c65971e1df8f0ac5b788b5bf4bd9a7ab..7485910a2f7b8852efbf94e96122aafb0c76f40a 100644 (file)
 #include "razorclipcommand.h"
 #include "customtrackview.h"
 
-RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo info, const GenTime cutTime, bool doIt) : 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() {
-// kDebug()<<"----  undoing action";
+    // kDebug()<<"----  undoing action";
     m_doIt = true;
     m_view->cutClip(m_info, m_cutTime, false);
 }
 // virtual
 void RazorClipCommand::redo() {
-    kDebug() << "----  redoing action cut: " << m_cutTime.frames(25);
+    // kDebug() << "----  redoing action cut: " << m_cutTime.frames(25);
     if (m_doIt)
         m_view->cutClip(m_info, m_cutTime, true);
     m_doIt = true;