When loading a comicbook, try to get just the size of the various images without...
commit4d44f4468d31e8c3aadcae34270081a6d62a6e75
authorpino <pino@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Mon, 26 Jan 2009 18:37:53 +0000 (26 18:37 +0000)
committerpino <pino@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Mon, 26 Jan 2009 18:37:53 +0000 (26 18:37 +0000)
treeb15162dc87518b2a475c214d2f8f5c94039419ae
parent238353c405df8d302a7e798fc6d1a5e9a6c7a379
When loading a comicbook, try to get just the size of the various images without loading them if possible.

Instead of just fully loading the images, make use of QImageReader to query for the size if available, and in case just do the old way (full image loading).
This drastically kills the loading time of comicbook documents of at least 50%, even by 75% (and possibly something more) on the average case.

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics@917041 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
okular/generators/comicbook/document.cpp
okular/generators/comicbook/document.h
okular/generators/comicbook/generator_comicbook.cpp
okular/generators/comicbook/unrar.cpp
okular/generators/comicbook/unrar.h