MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / dpiScaled

Function dpiScaled

src/gui/widgets/mapper_proxystyle.cpp:93–103  ·  view source on GitHub ↗

Cf. dpiScaled in qstylehelper.cpp, qt_defaultDpiX in qfont.cpp

Source from the content-addressed store, hash-verified

91
92// Cf. dpiScaled in qstylehelper.cpp, qt_defaultDpiX in qfont.cpp
93qreal dpiScaled(qreal value)
94{
95#ifdef Q_OS_MAC
96 return value;
97#else
98 if (QCoreApplication::instance()->testAttribute(Qt::AA_Use96Dpi))
99 return value;
100 static const qreal scale = defaultDpi() / 96.0;
101 return value * scale;
102#endif
103}
104
105} // namespace
106

Callers 1

polishMethod · 0.85

Calls 1

defaultDpiFunction · 0.85

Tested by

no test coverage detected