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
PIM
PIM Data Exporter
Commits
be14fb76
Commit
be14fb76
authored
Aug 20, 2022
by
Laurent Montel
Browse files
Port away from deprecated KIO code
parent
a4407b19
Pipeline
#220489
passed with stage
in 2 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/dialog/showarchivestructuredialog.cpp
View file @
be14fb76
...
...
@@ -20,7 +20,12 @@
#include
<QTreeWidget>
#include
<QVBoxLayout>
#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
<KTreeWidgetSearchLine>
#include
<QFileDialog>
...
...
@@ -105,7 +110,11 @@ void ShowArchiveStructureDialog::slotOpenFile()
return
;
}
auto
job
=
new
KIO
::
OpenUrlJob
(
QUrl
::
fromLocalFile
(
fileName
));
#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
->
setRunExecutables
(
false
);
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