]> git.sesse.net Git - kdenlive/blobdiff - src/commands/movegroupcommand.cpp
Use KLocalizedString (for i18n only, in kf5 it will necessary => use a script for...
[kdenlive] / src / commands / movegroupcommand.cpp
index f22bdc95818546294e1462cb3eebf4de8a623e16..22de56dc12cffed2a51528f89c8ec39483b545e0 100644 (file)
 #include "movegroupcommand.h"
 #include "customtrackview.h"
 
-#include <KLocale>
+#include <KLocalizedString>
 
-MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList <ItemInfo> startClip, const QList <ItemInfo> startTransition, const GenTime offset, const int trackOffset, bool doIt, QUndoCommand * parent) :
-        QUndoCommand(parent),
-        m_view(view),
-        m_startClip(startClip),
-        m_startTransition(startTransition),
-        m_offset(offset),
-        m_trackOffset(trackOffset),
-        m_doIt(doIt)
+MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList <ItemInfo> &startClip, const QList <ItemInfo> &startTransition, const GenTime &offset, const int trackOffset, bool doIt, QUndoCommand * parent) :
+    QUndoCommand(parent),
+    m_view(view),
+    m_startClip(startClip),
+    m_startTransition(startTransition),
+    m_offset(offset),
+    m_trackOffset(trackOffset),
+    m_doIt(doIt)
 {
     setText(i18n("Move group"));
 }
@@ -39,7 +39,7 @@ MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList <ItemInfo>
 // virtual
 void MoveGroupCommand::undo()
 {
-// kDebug()<<"----  undoing action";
+    // kDebug()<<"----  undoing action";
     m_doIt = true;
     m_view->moveGroup(m_startClip, m_startTransition, GenTime() - m_offset, - m_trackOffset, true);
 }