X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcommands%2Fresizeclipcommand.cpp;h=408239804fc520e9446b4293b2f598d06a398c85;hb=8d7da28432a5274577fa90a2ccf9cd9551159e9d;hp=9cde2c4bf7a16e5c2b35f253d1280c11559e0996;hpb=87914857d36c5b051b006f3f74d489af3801af4d;p=kdenlive diff --git a/src/commands/resizeclipcommand.cpp b/src/commands/resizeclipcommand.cpp index 9cde2c4b..40823980 100644 --- a/src/commands/resizeclipcommand.cpp +++ b/src/commands/resizeclipcommand.cpp @@ -21,15 +21,15 @@ #include "resizeclipcommand.h" #include "customtrackview.h" -#include +#include -ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, bool dontWorry, QUndoCommand * parent) : - QUndoCommand(parent), - m_view(view), - m_startPos(start), - m_endPos(end), - m_doIt(doIt), - m_dontWorry(dontWorry) +ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent) : + QUndoCommand(parent), + m_view(view), + m_startPos(start), + m_endPos(end), + m_doIt(doIt), + m_dontWorry(dontWorry) { setText(i18n("Resize clip")); } @@ -42,7 +42,9 @@ void ResizeClipCommand::undo() // virtual void ResizeClipCommand::redo() { - if (m_doIt) m_view->resizeClip(m_startPos, m_endPos, m_dontWorry); + if (m_doIt) { + m_view->resizeClip(m_startPos, m_endPos, m_dontWorry); + } m_doIt = true; }