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

Function defaultDpi

src/gui/widgets/mapper_proxystyle.cpp:85–90  ·  view source on GitHub ↗

Cf. qt_defaultDpiX in qfont.cpp

Source from the content-addressed store, hash-verified

83
84// Cf. qt_defaultDpiX in qfont.cpp
85int defaultDpi()
86{
87 if (auto* screen = QGuiApplication::primaryScreen())
88 return qRound(screen->logicalDotsPerInchX());
89 return 100;
90}
91
92// Cf. dpiScaled in qstylehelper.cpp, qt_defaultDpiX in qfont.cpp
93qreal dpiScaled(qreal value)

Callers 1

dpiScaledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected