summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qhighdpiscaling.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qhighdpiscaling.cpp')
-rw-r--r--src/gui/kernel/qhighdpiscaling.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/kernel/qhighdpiscaling.cpp b/src/gui/kernel/qhighdpiscaling.cpp
index c76ac9b590..8ea1735cd1 100644
--- a/src/gui/kernel/qhighdpiscaling.cpp
+++ b/src/gui/kernel/qhighdpiscaling.cpp
@@ -49,6 +49,8 @@
QT_BEGIN_NAMESPACE
+Q_LOGGING_CATEGORY(lcScaling, "qt.scaling");
+
static inline qreal initialScaleFactor()
{
static const char envVar[] = "QT_SCALE_FACTOR";
@@ -56,8 +58,10 @@ static inline qreal initialScaleFactor()
if (qEnvironmentVariableIsSet(envVar)) {
bool ok;
const qreal f = qgetenv(envVar).toDouble(&ok);
- if (ok && f > 0)
+ if (ok && f > 0) {
+ qCDebug(lcScaling) << "Apply QT_SCALE_FACTOR" << f;
result = f;
+ }
}
return result;
}