mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
don't use QPixmap if it is not necessary, so QCoreApplication can be used instead of QGuiApplication
This commit is contained in:
parent
7443ed43be
commit
2b4c972219
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user