Changeset 82082 in webkit
- Timestamp:
- Mar 27, 2011 3:54:59 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r82055 r82082 1 2011-03-27 Benjamin Poulain <benjamin.poulain@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled 6 https://bugs.webkit.org/show_bug.cgi?id=57087 7 8 Use explicit conversion for string to avoid depending on the default codec 9 installed by the user code. 10 11 * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp: 12 (WTR::activateFonts): 13 1 14 2011-03-26 Maciej Stachowiak <mjs@apple.com> 2 15 -
trunk/Tools/WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp
r81135 r82082 58 58 return; 59 59 60 QByteArray fontDir = getenv("WEBKIT_TESTFONTS"); 61 if (fontDir.isEmpty() || !QDir(fontDir).exists()) { 60 char* const fontDir = getenv("WEBKIT_TESTFONTS"); 61 const QString fontDirString = QString::fromLocal8Bit(fontDir); 62 if (!fontDirString.isEmpty() || !QDir(fontDirString).exists()) { 62 63 fprintf(stderr, 63 64 "\n\n" … … 78 79 if (!FcConfigParseAndLoad (config, (FcChar8*) configFile.data(), true)) 79 80 qFatal("Couldn't load font configuration file"); 80 if (!FcConfigAppFontAddDir (config, (FcChar8*) fontDir .data()))81 if (!FcConfigAppFontAddDir (config, (FcChar8*) fontDir)) 81 82 qFatal("Couldn't add font dir!"); 82 83 FcConfigSetCurrent(config); … … 86 87 #endif 87 88 88 QApplication::setGraphicsSystem( "raster");89 QApplication::setGraphicsSystem(QLatin1String("raster")); 89 90 QApplication::setStyle(new QWindowsStyle); 90 91 91 QFont f( "Sans Serif");92 QFont f(QLatin1String("Sans Serif")); 92 93 f.setPointSize(9); 93 94 f.setWeight(QFont::Normal);
Note: See TracChangeset
for help on using the changeset viewer.