Log the device pixel ratio used while rendering

This commit is contained in:
Luis Ángel San Martín 2022-01-15 11:54:40 +01:00
parent 08021ba9a8
commit e452178adb

View File

@ -22,6 +22,8 @@
#include <QFile>
#include <QsLog.h>
Viewer::Viewer(QWidget *parent)
: QScrollArea(parent),
fullscreen(false),
@ -363,6 +365,8 @@ void Viewer::updateContentSize()
// apply scaling
content->resize(pagefit);
QLOG_INFO() << "Device pixel ratio used while rendering: " << devicePixelRatioF();
// TODO: updtateContentSize should only scale the pixmap once
if (devicePixelRatioF() > 1) // only in HDPI displays
{