mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Log the device pixel ratio used while rendering
This commit is contained in:
parent
08021ba9a8
commit
e452178adb
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
|
#include <QsLog.h>
|
||||||
|
|
||||||
Viewer::Viewer(QWidget *parent)
|
Viewer::Viewer(QWidget *parent)
|
||||||
: QScrollArea(parent),
|
: QScrollArea(parent),
|
||||||
fullscreen(false),
|
fullscreen(false),
|
||||||
@ -363,6 +365,8 @@ void Viewer::updateContentSize()
|
|||||||
// apply scaling
|
// apply scaling
|
||||||
content->resize(pagefit);
|
content->resize(pagefit);
|
||||||
|
|
||||||
|
QLOG_INFO() << "Device pixel ratio used while rendering: " << devicePixelRatioF();
|
||||||
|
|
||||||
// TODO: updtateContentSize should only scale the pixmap once
|
// TODO: updtateContentSize should only scale the pixmap once
|
||||||
if (devicePixelRatioF() > 1) // only in HDPI displays
|
if (devicePixelRatioF() > 1) // only in HDPI displays
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user