Compile on Mac

Missing API update in Q_WS_MAC block

Reviewed-by: Jiang Jiang
(cherry picked from commit 4b95d9939db75d7bd55db4bbbf2d67af459f7eb5)
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2011-05-10 13:06:57 +02:00
parent 97952e918d
commit f0857b7667

View File

@ -593,11 +593,11 @@ QRawFont QRawFont::fromFont(const QFont &font, QFontDatabase::WritingSystem writ
// if none of them match, just pick the first one // if none of them match, just pick the first one
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
QGlyphRun glyphs = list.at(i); QGlyphRun glyphs = list.at(i);
QRawFont rawfont = glyphs.font(); QRawFont rawfont = glyphs.rawFont();
if (rawfont.familyName() == font.family()) if (rawfont.familyName() == font.family())
return rawfont; return rawfont;
} }
return list.at(0).font(); return list.at(0).rawFont();
} }
return QRawFont(); return QRawFont();
#else #else