diff options
author | Sune Vuorela <sune@vuorela.dk> | 2016-04-12 20:40:54 +0200 |
---|---|---|
committer | Sune Vuorela <sune@vuorela.dk> | 2016-04-13 15:54:27 +0000 |
commit | a202a900cf8838d01bad178be39d7e4a065ac56f (patch) | |
tree | db87b8ea5b2f66a2508b0ebff379455db4720062 /src | |
parent | b722836765dccca04683939d0d4f72a9e2585d88 (diff) | |
download | qtsvg-a202a900cf8838d01bad178be39d7e4a065ac56f.tar.gz |
Handle PdmDevicePixelRatioScaled metric
Quiets a warning about an unhandled member.
Change-Id: I20f6b6849176df541fba2e1a75d1d4ee8f2df303
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/svg/qsvggenerator.cpp | 1 |
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); |