#include <KDebug>
#include <KStandardDirs>
#include <KMessageBox>
+#include <KProgressDialog>
#include <KLocale>
#include <KFileDialog>
#include <KIO/NetAccess>
QDomNodeList producers = m_document.elementsByTagName("producer");
const int max = producers.count();
+ KProgressDialog progressDialog(parent, i18n("Loading project"), i18n("Loading project"));
+ progressDialog.setAllowCancel(false);
+ progressDialog.progressBar()->setMaximum(infomax - 1);
+ progressDialog.show();
+
for (int i = 0; i < infomax; i++) {
e = infoproducers.item(i).cloneNode().toElement();
QString prodId = e.attribute("id");
break;
}
}
+
if (!addClipInfo(e, orig, prodId)) {
// The user manually aborted the loading.
success = false;
break;
}
}
+ progressDialog.progressBar()->setValue(i);
}
if (success) {