]> git.pld-linux.org Git - packages/qt4.git/blob - qt4-antialias.patch
- qtconfig: update-desktop-database (.desktop specifies MimeType)
[packages/qt4.git] / qt4-antialias.patch
1 --- qt-everywhere-opensource-src-4.7.0/src/gui/text/qfontdatabase_x11.cpp.orig  2010-09-10 11:05:25.000000000 +0200
2 +++ qt-everywhere-opensource-src-4.7.0/src/gui/text/qfontdatabase_x11.cpp       2010-09-21 21:46:24.295720986 +0200
3 @@ -40,7 +40,7 @@
4  ****************************************************************************/
5  
6  #include <qplatformdefs.h>
7 -
8 +#include <qsettings.h>
9  #include <qdebug.h>
10  #include <qpaintdevice.h>
11  #include <qelapsedtimer.h>
12 @@ -1471,8 +1471,11 @@
13      if (!stretch)
14          stretch = 100;
15      FcPatternAddInteger(pattern, FC_WIDTH, stretch);
16 +    
17 +       QSettings prefs;
18 +       bool qt_use_antialiasing = prefs.value( "/qt/useXft", TRUE ).toBool() ;
19  
20 -    if (X11->display && QX11Info::appDepth(screen) <= 8) {
21 +    if (X11->display && (QX11Info::appDepth(screen) <= 8) || ! (qt_use_antialiasing)) {
22          // can't do antialiasing on 8bpp
23          FcPatternAddBool(pattern, FC_ANTIALIAS, false);
24      } else if (request.styleStrategy & (QFont::PreferAntialias|QFont::NoAntialias)) {
This page took 0.036138 seconds and 3 git commands to generate.