]> git.sesse.net Git - kdenlive/blobdiff - src/editeffectcommand.cpp
Render dialog: control 2 pass option with a checkbox.
[kdenlive] / src / editeffectcommand.cpp
index f829a2e952fbda775e71d7693662376de715bd60..9bbebc748651bf0efb4652c8098db84ab33a8861 100644 (file)
 
 #include <KLocale>
 
-EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt) :
-        QUndoCommand(),
+EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, QDomElement oldeffect, QDomElement effect, int stackPos, bool doIt, QUndoCommand *parent) :
+        QUndoCommand(parent),
         m_view(view),
         m_track(track),
         m_oldeffect(oldeffect),
         m_effect(effect),
-       m_pos(pos),
+        m_pos(pos),
         m_stackPos(stackPos),
         m_doIt(doIt)
 {
@@ -59,13 +59,11 @@ bool EditEffectCommand::mergeWith(const QUndoCommand * other)
 // virtual
 void EditEffectCommand::undo()
 {
-    //kDebug() << "----  undoing action";
     m_view->updateEffect(m_track, m_pos, m_oldeffect, m_stackPos, false);
 }
 // virtual
 void EditEffectCommand::redo()
 {
-    //kDebug() << "----  redoing action";
     m_view->updateEffect(m_track, m_pos, m_effect, m_stackPos, m_doIt);
     m_doIt = false;
 }