]> git.sesse.net Git - kdenlive/blobdiff - src/resizeclipcommand.cpp
Display Jpeg exif data in clip properties metadata
[kdenlive] / src / resizeclipcommand.cpp
index db5037b40370a5645db4b560f46fe5bdc541ea66..4d8cfdf1156485addf2d68a004e9c3996e4e35a5 100644 (file)
 
 #include <KLocale>
 
-ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_startPos(start), m_endPos(end), m_doIt(doIt)
+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"));
 }
@@ -33,13 +39,13 @@ void ResizeClipCommand::undo()
 {
 // kDebug()<<"----  undoing action";
     m_doIt = true;
-    if (m_doIt) m_view->resizeClip(m_endPos, m_startPos);
+    if (m_doIt) m_view->resizeClip(m_endPos, m_startPos, m_dontWorry);
 }
 // virtual
 void ResizeClipCommand::redo()
 {
     kDebug() << "----  redoing action";
-    if (m_doIt) m_view->resizeClip(m_startPos, m_endPos);
+    if (m_doIt) m_view->resizeClip(m_startPos, m_endPos, m_dontWorry);
     m_doIt = true;
 }