Commit 25945f75 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use deprecate method

parent d75277cf
......@@ -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.";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment