]> git.sesse.net Git - kdenlive/blobdiff - src/addmarkercommand.cpp
Reindent the codebase using 'linux' bracket placement.
[kdenlive] / src / addmarkercommand.cpp
index ed1c2a1ca6a5b52bfcf1b787b0d0a68ae3dcbe5d..e3287ec96a66ec85f815d816cca9d2a3a6eb336c 100644 (file)
@@ -21,7 +21,8 @@
 
 #include <KLocale>
 
-AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldcomment(oldcomment), m_comment(comment), m_id(id), m_pos(pos), m_doIt(doIt) {
+AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomment, const QString &comment, const QString &id, const GenTime &pos, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldcomment(oldcomment), m_comment(comment), m_id(id), m_pos(pos), m_doIt(doIt)
+{
     if (m_comment.isEmpty()) setText(i18n("Delete marker"));
     else if (m_oldcomment.isEmpty()) setText(i18n("Add marker"));
     else setText(i18n("Edit marker"));
@@ -29,11 +30,13 @@ AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const QString &oldcomm
 
 
 // virtual
-void AddMarkerCommand::undo() {
+void AddMarkerCommand::undo()
+{
     m_view->addMarker(m_id, m_pos, m_oldcomment);
 }
 // virtual
-void AddMarkerCommand::redo() {
+void AddMarkerCommand::redo()
+{
     if (m_doIt) {
         m_view->addMarker(m_id, m_pos, m_comment);
     }