summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintdevice.h
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2015-04-14 20:01:15 +0200
committerMorten Johan Sørvig <morten.sorvig@digia.com>2015-04-15 12:54:15 +0200
commit7ec765b1d10d26de2e13cb22364e45427b654d86 (patch)
treeb41a1ead7cd4bee427fd3b4f4b3a5e4a9ea47e99 /src/gui/painting/qpaintdevice.h
parent56b72d7809a6016149668b7df0dfd35022ff01c6 (diff)
Use qreal for devicePixelRatio everywhere
QPaintDevice::devicePixelRatio() -> devicePixelRatioF() Implement PdmDevicePixelRatioScaled for QPaintDevice subclasses. Remove instances of casting to int. Change-Id: I6e769d21e889bf8f88aedc1c49b53fef20a6709c
Diffstat (limited to 'src/gui/painting/qpaintdevice.h')
-rw-r--r--src/gui/painting/qpaintdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpaintdevice.h b/src/gui/painting/qpaintdevice.h
index 819116c585..c4ef9db766 100644
--- a/src/gui/painting/qpaintdevice.h
+++ b/src/gui/painting/qpaintdevice.h
@@ -81,8 +81,8 @@ public:
int colorCount() const { return metric(PdmNumColors); }
int depth() const { return metric(PdmDepth); }
- // ### Classes that are not QPaintDevice subclasses are implementing metric()
- // ### There needs to be some kind of (semi)-public API.
+ // ### Classes that are not QPaintDevice subclasses are implementing metric(),
+ // ### and need to access this constant. Add it here as a static constant for now
static qreal devicePixelRatioFScale;
protected:
QPaintDevice();