]> git.sesse.net Git - kdenlive/blobdiff - src/editfoldercommand.cpp
Progress on stopmotion widget (make it possible to switch between HDMI and V4L)
[kdenlive] / src / editfoldercommand.cpp
index ffc3b877fbc09659bdde5ee408eb013e5a23ca54..6dbcd7fc95b343118c2a071d05f19dbaceee1ac4 100644 (file)
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 
-#include <KLocale>
 
 #include "editfoldercommand.h"
 #include "projectlist.h"
 
-EditFolderCommand::EditFolderCommand(ProjectList *view, const QString newfolderName, const QString oldfolderName, const QString &clipId, bool doIt, QUndoCommand *parent) : QUndoCommand(parent), m_view(view), m_name(newfolderName), m_oldname(oldfolderName), m_id(clipId), m_doIt(doIt) {
+#include <KLocale>
+
+EditFolderCommand::EditFolderCommand(ProjectList *view, const QString newfolderName, const QString oldfolderName, const QString &clipId, bool doIt, QUndoCommand *parent) :
+        QUndoCommand(parent),
+        m_view(view),
+        m_name(newfolderName),
+        m_oldname(oldfolderName),
+        m_id(clipId),
+        m_doIt(doIt)
+{
     setText(i18n("Rename folder"));
 }
 
 // virtual
-void EditFolderCommand::undo() {
+void EditFolderCommand::undo()
+{
     m_view->slotAddFolder(m_oldname, m_id, false, true);
 }
 // virtual
-void EditFolderCommand::redo() {
+void EditFolderCommand::redo()
+{
     if (m_doIt) m_view->slotAddFolder(m_name, m_id, false, true);
     m_doIt = true;
 }