const int CLIPOK = 1;
const int CLIPPLACEHOLDER = 2;
-DocumentChecker::DocumentChecker(QDomNodeList producers, QDomNodeList infoproducers, QList <QDomElement> missingClips, QDomDocument doc, QWidget * parent) :
+DocumentChecker::DocumentChecker(QList <QDomElement> missingClips, QDomDocument doc, QWidget * parent) :
QDialog(parent),
m_doc(doc)
{
Q_OBJECT
public:
- explicit DocumentChecker(QDomNodeList producers, QDomNodeList infoproducers, QList <QDomElement> missingClips, QDomDocument doc, QWidget * parent = 0);
+ explicit DocumentChecker(QList <QDomElement> missingClips, QDomDocument doc, QWidget * parent = 0);
~DocumentChecker();
private slots:
}
QDomNodeList producers = m_document.elementsByTagName("producer");
QDomNodeList infoproducers = m_document.elementsByTagName("kdenlive_producer");
- if (checkDocumentClips(producers, infoproducers) == false) m_abortLoading = true;
+ if (checkDocumentClips(infoproducers) == false) m_abortLoading = true;
const int max = producers.count();
const int infomax = infoproducers.count();
return m_projectFolder.path() + "/ladspa/" + counter + ".ladspa";
}
-bool KdenliveDoc::checkDocumentClips(QDomNodeList producers, QDomNodeList infoproducers)
+bool KdenliveDoc::checkDocumentClips(QDomNodeList infoproducers)
{
int clipType;
QDomElement e;
}
}
if (missingClips.isEmpty()) return true;
- DocumentChecker d(producers, infoproducers, missingClips, m_document);
+ DocumentChecker d(missingClips, m_document);
return (d.exec() == QDialog::Accepted);
}
void setNewClipResource(const QString &id, const QString &path);
QString searchFileRecursively(const QDir &dir, const QString &matchSize, const QString &matchHash) const;
void moveProjectData(KUrl url);
- bool checkDocumentClips(QDomNodeList producers, QDomNodeList infoproducers);
+ bool checkDocumentClips(QDomNodeList infoproducers);
public slots:
void slotCreateTextClip(QString group, const QString &groupId);