don't use QPixmap if it is not necessary, so QCoreApplication can be used instead of QGuiApplication

This commit is contained in:
Luis Ángel San Martín 2015-12-13 18:45:48 +01:00
parent 7443ed43be
commit 2b4c972219
2 changed files with 4 additions and 4 deletions

View File

@ -636,7 +636,7 @@ void ThumbnailCreator::create()
#else
QImage p = pdfComic->page(_coverPage-1)->renderToImage(72,72);
#endif
_cover = QPixmap::fromImage(p);
_cover = p;
if(_target!="")
{
QImage scaled;

View File

@ -78,14 +78,14 @@
QString _target;
QString _currentName;
int _numPages;
QPixmap _cover;
QImage _cover;
int _coverPage;
static bool crash;
public slots:
void create();
int getNumPages(){return _numPages;};
QPixmap getCover(){return _cover;};
int getNumPages(){return _numPages;}
QPixmap getCover(){return QPixmap::fromImage(_cover);}
signals:
void openingError(QProcess::ProcessError error);