X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Feditguidecommand.cpp;h=c60a90e3ad063971a4eac10ac9068f7e523a4c8d;hb=7fc41642ed0c9079985f33e63d4cb1dabddf2b89;hp=d614d407c0057355579231771383c1ee9fe7a52e;hpb=79a2a7e101b1066cd8cc68adb1a726c8884d51e5;p=kdenlive diff --git a/src/editguidecommand.cpp b/src/editguidecommand.cpp index d614d407..c60a90e3 100644 --- a/src/editguidecommand.cpp +++ b/src/editguidecommand.cpp @@ -19,12 +19,11 @@ #include "editguidecommand.h" #include "customtrackview.h" -EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt) : m_view(view), m_oldPos(oldPos), m_oldcomment(oldcomment), m_pos(pos), m_comment(comment), m_doIt(doIt) { +EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldPos(oldPos), m_oldcomment(oldcomment), m_pos(pos), m_comment(comment), m_doIt(doIt) { if (m_oldcomment.isEmpty()) setText(i18n("Add guide")); else if (m_oldPos == m_pos) setText(i18n("Edit guide")); - else if (m_pos <= GenTime()) setText(i18n("Delete guide")); + else if (m_pos <= GenTime()) setText(i18n("Delete guide")); else setText(i18n("Move guide")); - kDebug() << "/// CREATE GUIDE COMMAND, TIMES: " << m_oldPos.frames(25) << "x" << m_pos.frames(25); } @@ -40,4 +39,3 @@ void EditGuideCommand::redo() { m_doIt = true; } -#include "editguidecommand.moc"