mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Remove log output
This commit is contained in:
parent
9fc3ab4981
commit
7a430cc136
@ -393,7 +393,6 @@ void Viewer::updateContentSize()
|
|||||||
|
|
||||||
// scale the image to fit the container
|
// scale the image to fit the container
|
||||||
auto devicePixelRatioF = content->devicePixelRatioF();
|
auto devicePixelRatioF = content->devicePixelRatioF();
|
||||||
QLOG_ERROR() << "src size: " << currentPage->size() << " content size: " << content->size() << " target size " << QSize(content->width() * devicePixelRatioF, content->height() * devicePixelRatioF);
|
|
||||||
QPixmap page = smartScalePixmap(*currentPage, content->width() * devicePixelRatioF, content->height() * devicePixelRatioF); // currentPage->scaled(content->width() * devicePixelRatioF(), content->height() * devicePixelRatioF(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
QPixmap page = smartScalePixmap(*currentPage, content->width() * devicePixelRatioF, content->height() * devicePixelRatioF); // currentPage->scaled(content->width() * devicePixelRatioF(), content->height() * devicePixelRatioF(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||||
page.setDevicePixelRatio(devicePixelRatioF);
|
page.setDevicePixelRatio(devicePixelRatioF);
|
||||||
content->setPixmap(page);
|
content->setPixmap(page);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user