Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Ark
Commits
24747104
Commit
24747104
authored
Feb 20, 2021
by
Ahmad Samir
Browse files
Port to new KJob::percentChanged() signal
parent
0a40f82a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/batchextract.cpp
View file @
24747104
...
...
@@ -32,6 +32,7 @@
#include
"jobs.h"
#include
"queries.h"
#include
<kcoreaddons_version.h>
#include
<KIO/JobTracker>
#include
<KIO/JobUiDelegate>
#include
<KIO/OpenUrlJob>
...
...
@@ -71,8 +72,12 @@ void BatchExtract::addExtraction(const QUrl& url)
m_fileNames
[
job
]
=
qMakePair
(
url
.
toLocalFile
(),
destination
);
connect
(
job
,
SIGNAL
(
percent
(
KJob
*
,
ulong
)),
this
,
SLOT
(
forwardProgress
(
KJob
*
,
ulong
)));
#if KCOREADDONS_VERSION < QT_VERSION_CHECK(5, 80, 0)
connect
(
job
,
SIGNAL
(
percent
(
KJob
*
,
ulong
)),
this
,
SLOT
(
forwardProgress
(
KJob
*
,
ulong
)));
#else
connect
(
job
,
&
KJob
::
percentChanged
,
this
,
&
BatchExtract
::
forwardProgress
);
#endif
connect
(
job
,
&
Kerfuffle
::
BatchExtractJob
::
userQuery
,
this
,
&
BatchExtract
::
slotUserQuery
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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