summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widgets/styles/qstylehelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/styles/qstylehelper.cpp b/src/widgets/styles/qstylehelper.cpp
index b8fbf37333..e23db2b637 100644
--- a/src/widgets/styles/qstylehelper.cpp
+++ b/src/widgets/styles/qstylehelper.cpp
@@ -77,8 +77,13 @@ QString uniqueName(const QString &key, const QStyleOption *option, const QSize &
qreal dpiScaled(qreal value)
{
+#ifdef Q_OS_MAC
+ // On mac the DPI is allways 72 so we should not scale it
+ return value;
+#else
static const qreal scale = qreal(qt_defaultDpiX()) / 96.0;
return value * scale;
+#endif
}