Permalink
Browse files

support EPUB

  • Loading branch information...
1 parent 6635218 commit d59a9fb4f31e4d705e627a2a6a57f1291c675fb0 @jakutis jakutis committed Nov 27, 2011
Showing with 3 additions and 0 deletions.
  1. +2 −0 partwin.cpp
  2. +1 −0 partwin.h
View
@@ -100,6 +100,8 @@ bool PartWin::readData(QIODevice *source, const QString &format)
filetype = ".djvu";
else if ( format == "application/x-chm" )
filetype = ".chm";
+ else if ( format == "application/epub+zip" )
+ filetype = ".epub";
else if ( format == "image/tiff" )
filetype = ".tiff";
else if ( format == "image/tiff-fx" )
View
@@ -36,6 +36,7 @@ class PartWin : public KParts::MainWindow, QtNPBindable
Q_CLASSINFO("MIME",
"application/pdf:pdf:PDF document;"
+ "application/epub+zip:epub:EPUB document;"
"image/tiff:tif,tiff:Tagged Image File Format;"
"image/tiff-fx:tif,tiff:Tagged Image File Format;"
"image/x.djvu:djv,djvu:DJVU document;"

0 comments on commit d59a9fb

Please sign in to comment.