Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
libktorrent
Commits
277e4d43
Commit
277e4d43
authored
Oct 25, 2022
by
Nicolas Fella
Browse files
Port away from deprecated JobUiDelegate constructor
parent
90087fff
Pipeline
#255590
passed with stage
in 2 minutes and 33 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/torrent/job.cpp
View file @
277e4d43
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment