Commit 277e4d43 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated JobUiDelegate constructor

parent 90087fff
Pipeline #255590 passed with stage
in 2 minutes and 33 seconds
......@@ -6,7 +6,9 @@
#include "job.h"
#include "torrentcontrol.h"
#include <KIO/JobUiDelegate>
#include <KIO/JobUiDelegateFactory>
#include <KJobTrackerInterface>
#include <kio_version.h>
namespace bt
{
......@@ -16,7 +18,11 @@ Job::Job(bool stop_torrent, bt::TorrentControl *tc)
: tc(tc)
, stop_torrent(stop_torrent)
{
#if KIO_VERSION < QT_VERSION_CHECK(5, 98, 0)
setUiDelegate(new KIO::JobUiDelegate());
#else
setUiDelegate(KIO::createDefaultJobUiDelegate());
#endif
}
Job::~Job()
......
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