summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-11-15 04:44:41 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-11-15 04:44:41 (GMT)
commit9b3bda409d152b14e99cd3f83ca0bfc9b837ccf2 (patch)
treec4f103b6c83d1008b00e21e330df2c6b780a8c33 /src/gui
parentb36e357b982ba01cbf905fb1d0340e87030b0a95 (diff)
parent0d6451ec1f1042dbf8c8cd7f2759e2a385d29696 (diff)
downloadQt-9b3bda409d152b14e99cd3f83ca0bfc9b837ccf2.zip
Qt-9b3bda409d152b14e99cd3f83ca0bfc9b837ccf2.tar.gz
Qt-9b3bda409d152b14e99cd3f83ca0bfc9b837ccf2.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Introduced new class QAnimationDriver for plugging in what drives animations Use correct font for menu item shortcuts Fix text rendering offset for raster engine on Mac
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qapplication_mac.mm2
-rw-r--r--src/gui/text/qfontengine_mac.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_mac.mm b/src/gui/kernel/qapplication_mac.mm
index e5364d0..3aafeb4 100644
--- a/src/gui/kernel/qapplication_mac.mm
+++ b/src/gui/kernel/qapplication_mac.mm
@@ -549,7 +549,7 @@ void qt_mac_update_os_settings()
FontMap("QTipLabel", kThemeSmallSystemFont),
FontMap("QLabel", kThemeSystemFont),
FontMap("QToolButton", kThemeSmallSystemFont),
- FontMap("QMenuItem", kThemeMenuItemCmdKeyFont), // It doesn't exist, but its unique.
+ FontMap("QMenuItem", kThemeMenuItemFont), // It doesn't exist, but its unique.
FontMap("QComboLineEdit", kThemeViewsFont), // It doesn't exist, but its unique.
FontMap("QSmallFont", kThemeSmallSystemFont), // It doesn't exist, but its unique.
FontMap("QMiniFont", kThemeMiniSystemFont), // It doesn't exist, but its unique.
diff --git a/src/gui/text/qfontengine_mac.mm b/src/gui/text/qfontengine_mac.mm
index 7efb1cc..51e18ec 100644
--- a/src/gui/text/qfontengine_mac.mm
+++ b/src/gui/text/qfontengine_mac.mm
@@ -694,7 +694,7 @@ QImage QCoreTextFontEngine::imageForGlyph(glyph_t glyph, QFixed subPixelPosition
CGContextSetFont(ctx, cgFont);
qreal pos_x = -br.x.toReal() + subPixelPosition.toReal();
- qreal pos_y = im.height()+br.y.toReal();
+ qreal pos_y = im.height() + br.y.toReal() - 1;
CGContextSetTextPosition(ctx, pos_x, pos_y);
CGSize advance;