]> git.sesse.net Git - kdenlive/blobdiff - src/addclipcommand.cpp
Cleanup and add mimetype for TGA images, also add EXR, TIFF and TGA to the list of...
[kdenlive] / src / addclipcommand.cpp
index 7566bf76b6ed4003a18d16c2027048582854e48f..1807e38c4922fb4d30aa9c6c3c97ffd41fd4a8ea 100644 (file)
@@ -20,9 +20,9 @@
 #include <KLocale>
 
 #include "addclipcommand.h"
+#include "kdenlivedoc.h"
 
-AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const uint id, bool doIt)
-        : m_doc(doc), m_xml(xml), m_id(id), m_doIt(doIt) {
+AddClipCommand::AddClipCommand(KdenliveDoc *doc, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_doc(doc), m_xml(xml), m_id(id), m_doIt(doIt) {
     if (doIt) setText(i18n("Add clip"));
     else setText(i18n("Delete clip"));
 }
@@ -41,4 +41,3 @@ void AddClipCommand::redo() {
     else m_doc->deleteClip(m_id);
 }
 
-#include "addclipcommand.moc"