Fix font rendering gamma correction on Mac

It needs a 2.0 gamma (as in Qt 4) in platform plugin styleHint.

Change-Id: I2286532c607554c41baee4fa348cd7899bf010e1
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
Jiang Jiang 2012-05-22 14:36:25 +02:00 committed by Qt by Nokia
parent f06b629bfb
commit d74a246cc9
2 changed files with 8 additions and 0 deletions

View File

@ -101,6 +101,7 @@ public:
QStringList themeNames() const;
QPlatformTheme *createPlatformTheme(const QString &name) const;
QPlatformServices *services() const;
QVariant styleHint(StyleHint hint) const;
private:

View File

@ -245,4 +245,11 @@ QPlatformServices *QCocoaIntegration::services() const
return mServices.data();
}
QVariant QCocoaIntegration::styleHint(StyleHint hint) const
{
if (hint == QPlatformIntegration::FontSmoothingGamma)
return 2.0;
return QPlatformIntegration::styleHint(hint);
}
QT_END_NAMESPACE