mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
kio_msits emits mimetype again
kio_msits emitting mimetype function ported to QT5. A kio slave should always emit the mimetype (see kio slave api doc). Reviewed at https://git.reviewboard.kde.org/r/130113/
This commit is contained in:
parent
dc85379ce1
commit
357f198c1e
|
@ -123,13 +123,13 @@ void ProtocolMSITS::get( const QUrl& url )
|
|||
}
|
||||
|
||||
totalSize( buf.size() );
|
||||
#if 0 //PORT QT5
|
||||
|
||||
QMimeDatabase db;
|
||||
QMimeType result = db.mimeTypeForNameAndData( fileName, buf );
|
||||
QMimeType result = db.mimeTypeForFileNameAndData( fileName, buf );
|
||||
qCDebug(KIO_MITS_LOG) << "Emitting mimetype " << result.name();
|
||||
|
||||
mimeType( result.name() );
|
||||
#endif
|
||||
mimeType( result.name() );
|
||||
|
||||
data( buf );
|
||||
processedSize( buf.size() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue