mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
generic: remove QT_KATIE definition checks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
29171a58d1
commit
3a91a1580d
3 changed files with 0 additions and 13 deletions
|
@ -28,11 +28,6 @@
|
|||
#include <kdebug.h>
|
||||
#include <qfile.h>
|
||||
|
||||
#ifndef QT_KATIE
|
||||
# include <qjson/parser.h>
|
||||
#endif
|
||||
|
||||
|
||||
JSONArchiveInterface::JSONArchiveInterface(QObject *parent, const QVariantList& args)
|
||||
: Kerfuffle::ReadWriteArchiveInterface(parent, args)
|
||||
{
|
||||
|
|
|
@ -395,11 +395,7 @@ QTextDocument* Converter::convert( const QString &fileName )
|
|||
block = _cursor->block();
|
||||
QImage image;
|
||||
mSectionMap.insert(link, block);
|
||||
#ifndef QT_KATIE
|
||||
if (image.loadFromData((unsigned char *)data, size)) {
|
||||
#else
|
||||
if (image.loadFromData(data, size)) {
|
||||
#endif
|
||||
mTextDocument->addResource(QTextDocument::ImageResource,
|
||||
QUrl(link), image);
|
||||
_cursor->insertImage(link);
|
||||
|
|
|
@ -89,11 +89,7 @@ QVariant EpubDocument::loadResource(int type, const QUrl &name)
|
|||
if (data) {
|
||||
switch(type) {
|
||||
case QTextDocument::ImageResource:{
|
||||
#ifndef QT_KATIE
|
||||
QImage img = QImage::fromData((unsigned char *)data, size);
|
||||
#else
|
||||
QImage img = QImage::fromData(data, size);
|
||||
#endif
|
||||
const int maxHeight = maxContentHeight();
|
||||
const int maxWidth = maxContentWidth();
|
||||
if(img.height() > maxHeight)
|
||||
|
|
Loading…
Add table
Reference in a new issue