Changeset 13500 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 22, 2008 3:46:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp
r13492 r13500 32 32 #endif 33 33 34 #ifdef Q_WS_X11 35 #include <QFontDatabase> 36 #endif 37 34 38 #include <QCleanlooksStyle> 35 39 #include <QPlastiqueStyle> … … 266 270 #ifdef Q_WS_X11 267 271 /* Cause Qt4 has the conflict with fontconfig application as a result 268 * substituting some fonts with non anti-aliased bitmap font we are 269 * reseting all the substitutes here for the current application font. */ 270 # ifndef Q_OS_SOLARIS 271 QFont::removeSubstitution (QApplication::font().family()); 272 # endif /* Q_OS_SOLARIS */ 272 * sometimes substituting some fonts with non scaleable-anti-aliased 273 * bitmap font we are reseting substitutes for the current application 274 * font family if it is non scaleable-anti-aliased. */ 275 QFontDatabase fontDataBase; 276 QString subFamily (QFont::substitute (QApplication::font().family())); 277 bool isScaleable = fontDataBase.isSmoothlyScalable (subFamily); 278 if (!isScaleable) 279 QFont::removeSubstitution (QApplication::font().family()); 273 280 #endif 274 281
Note:
See TracChangeset
for help on using the changeset viewer.