summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qmath_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2012-10-12 17:33:51 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-03 14:29:37 +0100
commit5021c1d977c7f29379c049e57316364236f91aab (patch)
tree8b1642e2d9f0e3ae7ac9238f5178531e9341d1c8 /src/gui/painting/qmath_p.h
parent168f32f3f42a2407858105aff10143eebabbd5a6 (diff)
xcb: notify when the logical DPI changes; add Q_MM_PER_INCH constant
Change-Id: I15696bf45ae99cc5b0fd95dab4884fc85cbfc6da Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui/painting/qmath_p.h')
-rw-r--r--src/gui/painting/qmath_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qmath_p.h b/src/gui/painting/qmath_p.h
index c710ee462a..bc7bb320b7 100644
--- a/src/gui/painting/qmath_p.h
+++ b/src/gui/painting/qmath_p.h
@@ -61,6 +61,7 @@ QT_BEGIN_NAMESPACE
static const qreal Q_PI = qreal(3.14159265358979323846); // pi
static const qreal Q_2PI = qreal(6.28318530717958647693); // 2*pi
static const qreal Q_PI2 = qreal(1.57079632679489661923); // pi/2
+static const qreal Q_MM_PER_INCH = 25.4;
inline int qIntSqrtInt(int v)
{