summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSune Vuorela <sune@vuorela.dk>2016-04-12 20:40:54 +0200
committerSune Vuorela <sune@vuorela.dk>2016-04-13 15:54:27 +0000
commita202a900cf8838d01bad178be39d7e4a065ac56f (patch)
treedb87b8ea5b2f66a2508b0ebff379455db4720062
parentb722836765dccca04683939d0d4f72a9e2585d88 (diff)
downloadqtsvg-a202a900cf8838d01bad178be39d7e4a065ac56f.tar.gz
Handle PdmDevicePixelRatioScaled metric
Quiets a warning about an unhandled member. Change-Id: I20f6b6849176df541fba2e1a75d1d4ee8f2df303 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
-rw-r--r--src/svg/qsvggenerator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svg/qsvggenerator.cpp b/src/svg/qsvggenerator.cpp
index ca99de1..3bc5846 100644
--- a/src/svg/qsvggenerator.cpp
+++ b/src/svg/qsvggenerator.cpp
@@ -794,6 +794,7 @@ int QSvgGenerator::metric(QPaintDevice::PaintDeviceMetric metric) const
case QPaintDevice::PdmPhysicalDpiY:
return d->engine->resolution();
case QPaintDevice::PdmDevicePixelRatio:
+ case QPaintDevice::PdmDevicePixelRatioScaled:
return 1;
default:
qWarning("QSvgGenerator::metric(), unhandled metric %d\n", metric);