diff options
author | Kevin Krammer <kevin.krammer.qnx@kdab.com> | 2012-10-18 09:46:48 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-22 01:54:15 (GMT) |
commit | 3d3e54868e67d0789ee483a0a03990c819d434e2 (patch) | |
tree | 74ff2d66ecea45d54102a3bba03f8f5591df8f38 /src/gui | |
parent | e737ea6dbc0430075d30ad995d402437c7231da1 (diff) | |
download | Qt-3d3e54868e67d0789ee483a0a03990c819d434e2.zip Qt-3d3e54868e67d0789ee483a0a03990c819d434e2.tar.gz Qt-3d3e54868e67d0789ee483a0a03990c819d434e2.tar.bz2 |
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/gui')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index fd7fba5..d0db0d9 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 |