summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-06-28 10:13:57 (GMT)
committercon <qtc-committer@nokia.com>2011-06-28 10:13:57 (GMT)
commit938a66e93a279027b812b386d98a77c46f314294 (patch)
tree41bfe3ed74d5892bd3ec7a487b47be25a2db8b36 /src/plugins
parent1a4bdffffc8f294e71cf9a9683e9030bd6e0644c (diff)
downloadQt-938a66e93a279027b812b386d98a77c46f314294.zip
Qt-938a66e93a279027b812b386d98a77c46f314294.tar.gz
Qt-938a66e93a279027b812b386d98a77c46f314294.tar.bz2
Change default application font for uikit platform.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/uikit/quikitscreen.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/uikit/quikitscreen.mm b/src/plugins/platforms/uikit/quikitscreen.mm
index 0a5b027..ae1c7cf 100644
--- a/src/plugins/platforms/uikit/quikitscreen.mm
+++ b/src/plugins/platforms/uikit/quikitscreen.mm
@@ -63,12 +63,18 @@ QUIKitScreen::QUIKitScreen(int screenIndex)
const qreal inch = 25.4;
qreal dpi = 160.;
int dragDistance = 12;
+ int defaultFontPixelSize = 14;
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
dpi = 132.;
dragDistance = 10;
}
m_physicalSize = QSize(qRound(bounds.size.width * inch / dpi), qRound(bounds.size.height * inch / dpi));
qApp->setStartDragDistance(dragDistance);
+
+ QFont font(QLatin1String("Bitstream Vera Sans"));
+ font.setPixelSize(defaultFontPixelSize);
+ qApp->setFont(font);
+
[pool release];
}