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 #else
QImage p = pdfComic->page(_coverPage-1)->renderToImage(72,72); QImage p = pdfComic->page(_coverPage-1)->renderToImage(72,72);
#endif #endif
_cover = QPixmap::fromImage(p); _cover = p;
if(_target!="") if(_target!="")
{ {
QImage scaled; QImage scaled;

View File

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