mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
don't use QPixmap if it is not necessary, so QCoreApplication can be used instead of QGuiApplication
This commit is contained in:
@ -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;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user