Fix use of deprecated KRun methods

parent 8b6d08d8
Pipeline #23106 passed with stage
in 10 minutes and 10 seconds
......@@ -49,8 +49,13 @@
#include <QStandardPaths>
#include <QTemporaryFile>
#include <QTimer>
#include <kio_version.h>
#include <QXmlStreamWriter>
#if KIO_VERSION >= QT_VERSION_CHECK(5,71,0)
#include <KIO/OpenUrlJob>
#endif
// Recommended MLT version
const int mltVersionMajor = MLT_MIN_MAJOR_VERSION;
const int mltVersionMinor = MLT_MIN_MINOR_VERSION;
......@@ -915,13 +920,11 @@ bool Wizard::isOk() const
void Wizard::slotOpenManual()
{
#if KIO_VERSION >= QT_VERSION_CHECK(5,71,0)
KIO::OpenUrlJob(QUrl(QStringLiteral("https://kdenlive.org/troubleshooting")), QStringLiteral("text/html"));
#else
KRun::runUrl(QUrl(QStringLiteral("https://kdenlive.org/troubleshooting")), QStringLiteral("text/html"), this, KRun::RunFlags());
}
void Wizard::slotShowWebInfos()
{
KRun::runUrl(QUrl("https://kdenlive.org/discover/" + QString(kdenlive_version).section(QLatin1Char(' '), 0, 0)), QStringLiteral("text/html"), this,
KRun::RunFlags());
#endif
}
void Wizard::slotSaveCaptureFormat()
......
......@@ -78,7 +78,6 @@ private slots:
void slotCheckStandard();
void slotCheckSelectedItem();
void slotCheckMlt();
void slotShowWebInfos();
void slotDetectWebcam();
void slotUpdateCaptureParameters();
void slotSaveCaptureFormat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment