Fix a typo in QFontconfigDatabase

Font family names for default families (Serif, Sans serif, Monospace)
was only taken from the first family in the array (aka. always Serif).

Change-Id: Ia326dc85e03819f1a72deda66aade348809d94da
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
This commit is contained in:
Jiang Jiang 2012-03-20 09:56:00 +01:00 committed by Qt by Nokia
parent 5234e901be
commit 1d6e16a6ac

View File

@ -453,9 +453,8 @@ void QFontconfigDatabase::populateFontDatabase()
QSupportedWritingSystems ws;
ws.setSupported(QFontDatabase::Latin);
QString familyQtName = QString::fromLatin1(f->qtname);
while (f->qtname) {
QString familyQtName = QString::fromLatin1(f->qtname);
registerFont(familyQtName,QString(),QFont::Normal,QFont::StyleNormal,QFont::Unstretched,true,true,0,f->fixed,ws,0);
registerFont(familyQtName,QString(),QFont::Normal,QFont::StyleItalic,QFont::Unstretched,true,true,0,f->fixed,ws,0);
registerFont(familyQtName,QString(),QFont::Normal,QFont::StyleOblique,QFont::Unstretched,true,true,0,f->fixed,ws,0);