#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;