Commit 317abde0 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

compile

svn path=/trunk/playground/graphics/okular/; revision=624729
parent c06cbc33
......@@ -22,7 +22,7 @@
#include <kdebug.h>
#include <kinstance.h>
#include <kurl.h>
#include <kmimemagic.h>
#include <kmimetype.h>
#include <qfile.h>
#include <qbitarray.h>
......@@ -112,10 +112,10 @@ void ProtocolMSITS::get( const KUrl& url )
}
totalSize( ui.length );
KMimeMagicResult * result = KMimeMagic::self()->findBufferFileType( buf, fileName );
kDebug() << "Emitting mimetype " << result->mimeType() << endl;
KMimeType::Ptr result = KMimeType::findByNameAndContent( fileName, buf );
kDebug() << "Emitting mimetype " << result->name() << endl;
mimeType( result->mimeType() );
mimeType( result->name() );
data( buf );
processedSize( ui.length );
......
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