#include <QXmlStreamWriter>
#include <QTimer>
-const double recommendedMltVersion = 46;
-static const char version[] = VERSION;
+const double recommendedMltVersion = 510;
+static const char kdenlive_version[] = VERSION;
Wizard::Wizard(bool upgrade, QWidget *parent) :
QWizard(parent)
page1->setTitle(i18n("Welcome"));
QLabel *label;
if (upgrade)
- label = new QLabel(i18n("Your Kdenlive version was upgraded to version %1. Please take some time to review the basic settings", QString(version).section(' ', 0, 0)));
+ label = new QLabel(i18n("Your Kdenlive version was upgraded to version %1. Please take some time to review the basic settings", QString(kdenlive_version).section(' ', 0, 0)));
else
label = new QLabel(i18n("This is the first time you run Kdenlive. This wizard will let you adjust some basic settings, you will be ready to edit your first movie in a few seconds..."));
label->setWordWrap(true);
} else {
checkProcess.waitForFinished();
mltVersion = checkProcess.readAllStandardOutput();
- version = 100 * mltVersion.section('.', 0, 0).toInt() + 10 * mltVersion.section('.', 1, 1).toInt() + mltVersion.section('.', 2, 2).toInt();
+ version = 1000 * mltVersion.section('.', 0, 0).toInt() + 100 * mltVersion.section('.', 1, 1).toInt() + mltVersion.section('.', 2, 2).toInt();
kDebug() << "// FOUND MLT's pkgconfig version: " << version;
}
}
mltVersion = checkProcess.readAllStandardError();
mltVersion = mltVersion.section('\n', 0, 0).simplified();
mltVersion = mltVersion.section(' ', -1).simplified();
- version = 100 * mltVersion.section('.', 0, 0).toInt() + 10 * mltVersion.section('.', 1, 1).toInt() + mltVersion.section('.', 2, 2).toInt();
+ version = 1000 * mltVersion.section('.', 0, 0).toInt() + 100 * mltVersion.section('.', 1, 1).toInt() + mltVersion.section('.', 2, 2).toInt();
kDebug() << "// FOUND MLT version: " << version;
}
}
mltitem->setText(1, i18n("MLT version: %1", mltVersion.simplified()));
mltitem->setSizeHint(0, itemSize);
- if (version < 40) {
+ if (version < 506) {
mltitem->setData(1, Qt::UserRole, i18n("Your MLT version is unsupported!!!"));
mltitem->setIcon(0, m_badIcon);
} else {
if (!result.contains("sdl") || !result.contains("sdl_preview")) errorMessage.append(i18n("MLT's SDL module not found. Please check your MLT install. Kdenlive will not work until this issue is fixed.") + '\n');
if (!errorMessage.isEmpty()) {
- errorMessage.prepend(QString("<b>%1</b><br>").arg(i18n("Fatal Error")));
+ errorMessage.prepend(QString("<b>%1</b><br />").arg(i18n("Fatal Error")));
QLabel *pix = new QLabel();
pix->setPixmap(KIcon("dialog-error").pixmap(30));
QLabel *label = new QLabel(errorMessage);
void Wizard::slotShowWebInfos()
{
- KRun::runUrl(KUrl("http://kdenlive.org/discover/" + QString(version).section(' ', 0, 0)), "text/html", this);
+ KRun::runUrl(KUrl("http://kdenlive.org/discover/" + QString(kdenlive_version).section(' ', 0, 0)), "text/html", this);
}
#include "wizard.moc"