summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qfontdialog_mac.mm
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-27 11:42:59 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-27 11:42:59 (GMT)
commit00d5e1bc789cd27d2decb150426a1c7620c73bc9 (patch)
tree6fabea2ba754fb382fbb5130dbd7b7611b9e9a04 /src/gui/dialogs/qfontdialog_mac.mm
parent9e68da0680d5b85a0713142df9b7ad9674960353 (diff)
parentc91ccab6f4ae1f7dd8c2c7103d6d63e7725b9eeb (diff)
downloadQt-00d5e1bc789cd27d2decb150426a1c7620c73bc9.zip
Qt-00d5e1bc789cd27d2decb150426a1c7620c73bc9.tar.gz
Qt-00d5e1bc789cd27d2decb150426a1c7620c73bc9.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6
Diffstat (limited to 'src/gui/dialogs/qfontdialog_mac.mm')
-rw-r--r--src/gui/dialogs/qfontdialog_mac.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/dialogs/qfontdialog_mac.mm b/src/gui/dialogs/qfontdialog_mac.mm
index 5b0983b..0c467cd 100644
--- a/src/gui/dialogs/qfontdialog_mac.mm
+++ b/src/gui/dialogs/qfontdialog_mac.mm
@@ -625,10 +625,11 @@ void QFontDialogPrivate::setFont(void *delegate, const QFont &font)
}
NSFontManager *mgr = [NSFontManager sharedFontManager];
- nsFont = [mgr fontWithFamily:qt_mac_QStringToNSString(font.family())
+ QFontInfo fontInfo(font);
+ nsFont = [mgr fontWithFamily:qt_mac_QStringToNSString(fontInfo.family())
traits:mask
weight:weight
- size:QFontInfo(font).pointSize()];
+ size:fontInfo.pointSize()];
}
[mgr setSelectedFont:nsFont isMultiple:NO];