summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiostheme.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-12-13 15:20:30 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 23:55:54 +0100
commit70b21ec3c12c655354676778e087182f20aadbb1 (patch)
treef8de953b3c379b8b3dcddfc3d0fff2a56ec4a8a0 /src/plugins/platforms/ios/qiostheme.h
parent72c1ada86f8aed0109936542b66ab66981ec39ef (diff)
iOS: Make default system font Helvetica
Without a platform theme implementatin we were relying on QCoreTextFontDatabase::defaultFont() to return the system font. This didn't work because it reported the system font that iOS reports, '.Helvetica Neue UI', which is a private font that does not get added to our font database. The result was that we picked the first font in the list of known fonts -- in this case 'Academy Engraved LET'. We now implement QIOSTheme::font(), which takes precedence over the font database's default font, and hard-code the system font to 'Helvetica', since Qt does not yet have the concept of private system fonts. Change-Id: I901cf9c2b662ea2795212376b84b8391be2efbbe Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiostheme.h')
-rw-r--r--src/plugins/platforms/ios/qiostheme.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiostheme.h b/src/plugins/platforms/ios/qiostheme.h
index d21d8804fa..5ccbcac710 100644
--- a/src/plugins/platforms/ios/qiostheme.h
+++ b/src/plugins/platforms/ios/qiostheme.h
@@ -54,6 +54,8 @@ public:
QVariant themeHint(ThemeHint hint) const;
+ const QFont *font(Font type = SystemFont) const;
+
static const char *name;
};