summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin Krammer <kevin.krammer.qnx@kdab.com>2012-10-18 11:46:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-22 03:54:15 +0200
commit3d3e54868e67d0789ee483a0a03990c819d434e2 (patch)
tree74ff2d66ecea45d54102a3bba03f8f5591df8f38 /src
parente737ea6dbc0430075d30ad995d402437c7231da1 (diff)
BlackBerry: Change base font sizes from pixels to points
Previously recommended fonts sizes in pixels do not work very well on the new high resolution devices. Current UX documentation recommends point size 8 for normal text which works well on both types of devices. Backport of qtbase 4d693b6cdf879a03f77f2a06ca0e1be5605c0fc0 Change-Id: I9507b77a5e814b33cf90e714ae62d64e468710b9 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index fd7fba5638..d0db0d9d47 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -1956,8 +1956,10 @@ QFont QApplication::font()
QMutexLocker locker(applicationFontMutex());
if (!QApplicationPrivate::app_font) {
#if defined(Q_OS_BLACKBERRY)
+ // See http://docs.blackberry.com/en/developers/deliverables/41577/typography.jsp
+ // which recommends using font family "Slate Pro" and normal font size of 8 points
QApplicationPrivate::app_font = new QFont(QLatin1String("Slate Pro"));
- QApplicationPrivate::app_font->setPixelSize(21);
+ QApplicationPrivate::app_font->setPointSize(8);
#else
QApplicationPrivate::app_font = new QFont(QLatin1String("Helvetica"));
#endif