]> git.sesse.net Git - kdenlive/blobdiff - src/addmarkercommand.cpp
Add crop end info to clip info dialog (based on a patch by Till Theato):
[kdenlive] / src / addmarkercommand.cpp
index adec5022b383ab9bd4840c02a469b0ddac6be097..bc6d73207d874b55f167ede86b9f01a4b3b1a52c 100644 (file)
 
 #include <KLocale>
 
-AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldcomment(oldcomment), m_comment(comment), m_id(id), m_pos(pos)
+AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, QUndoCommand * parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_oldcomment(oldcomment),
+        m_comment(comment),
+        m_id(id),
+        m_pos(pos)
 {
     if (m_comment.isEmpty()) setText(i18n("Delete marker"));
     else if (m_oldcomment.isEmpty()) setText(i18n("Add marker"));
@@ -37,6 +43,6 @@ void AddMarkerCommand::undo()
 // virtual
 void AddMarkerCommand::redo()
 {
-        m_view->addMarker(m_id, m_pos, m_comment);
+    m_view->addMarker(m_id, m_pos, m_comment);
 }