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
System
KSystemLog
Commits
25945f75
Commit
25945f75
authored
Jan 03, 2021
by
Laurent Montel
😁
Browse files
Don't use deprecate method
parent
d75277cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/kioLogFileReader.cpp
View file @
25945f75
...
...
@@ -25,6 +25,7 @@
#include <kio/filejob.h>
#include <kio/job.h>
#include <kio_version.h>
#include <KDirWatch>
...
...
@@ -85,9 +86,13 @@ void KioLogFileReader::open()
connect
(
d
->
fileJob
,
&
KIO
::
FileJob
::
data
,
this
,
&
KioLogFileReader
::
dataReceived
);
#if KIO_VERSION < QT_VERSION_CHECK(5, 78, 0)
connect
(
d
->
fileJob
,
&
KIO
::
FileJob
::
mimetype
,
this
,
&
KioLogFileReader
::
mimetypeReceived
);
#else
connect
(
d
->
fileJob
,
&
KIO
::
FileJob
::
mimeTypeFound
,
this
,
&
KioLogFileReader
::
mimetypeReceived
);
#endif
logDebug
()
<<
"File opened."
;
}
...
...
Write
Preview
Markdown
is supported
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