Commit 480fd85f authored by Laurent Montel's avatar Laurent Montel
Browse files

Port away from deprecated KIO code

parent e11a5349
Pipeline #220571 passed with stage
in 3 minutes and 9 seconds
......@@ -21,7 +21,12 @@
#include <QVBoxLayout>
#include <KIO/OpenUrlJob>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
#include <KIO/JobUiDelegateFactory>
#else
#include <KIO/JobUiDelegate>
#endif
#include <KGuiItem>
#include <KIO/StatJob>
#include <KIO/CopyJob>
......@@ -197,7 +202,11 @@ void HighscoresWidget::handleUrlClicked()
}
// kDebug(11001) ;
auto *job = new KIO::OpenUrlJob(QUrl(label->url()));
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#else
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#endif
job->start();
}
......
Supports Markdown
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