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
Utilities
KEditBookmarks
Commits
4cb79028
Commit
4cb79028
authored
Aug 21, 2022
by
Laurent Montel
Browse files
Port away from deprecated KIO code
parent
a1096196
Pipeline
#220960
passed with stage
in 4 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/actionsimpl.cpp
View file @
4cb79028
...
...
@@ -42,7 +42,12 @@
#include
<QMimeData>
#include
<KActionCollection>
#include
<kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
#include
<KIO/JobUiDelegateFactory>
#else
#include
<KIO/JobUiDelegate>
#endif
#include
<KIO/OpenUrlJob>
#include
<KIconDialog>
#include
<KIconLoader>
...
...
@@ -556,7 +561,11 @@ void ActionsImpl::slotOpenLink()
}
auto
*
job
=
new
KIO
::
OpenUrlJob
(
bm
.
url
());
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
job
->
setUiDelegate
(
KIO
::
createDefaultJobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
KEBApp
::
self
()));
#else
job
->
setUiDelegate
(
new
KIO
::
JobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
KEBApp
::
self
()));
#endif
job
->
start
();
}
}
...
...
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