summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-11-25 05:33:13 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-11-25 05:33:13 (GMT)
commit852f4811453cb0b082748f2fcefac5898e603ab0 (patch)
tree3b42839d93e847ed5a046145ad0a34d24278f7f6 /tools
parentbb575d308350036eff913a6b61c680712613c540 (diff)
downloadQt-852f4811453cb0b082748f2fcefac5898e603ab0.zip
Qt-852f4811453cb0b082748f2fcefac5898e603ab0.tar.gz
Qt-852f4811453cb0b082748f2fcefac5898e603ab0.tar.bz2
Fixup visual tests on Mac
Disable sub-pixel antialiasing and skip text on 10.5
Diffstat (limited to 'tools')
-rw-r--r--tools/qml/qdeclarativetester.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/qml/qdeclarativetester.cpp b/tools/qml/qdeclarativetester.cpp
index a516fd7..e3a1f59 100644
--- a/tools/qml/qdeclarativetester.cpp
+++ b/tools/qml/qdeclarativetester.cpp
@@ -274,7 +274,16 @@ void QDeclarativeTester::updateCurrentTime(int msec)
if (options & QDeclarativeViewer::TestImages) {
img.fill(qRgb(255,255,255));
+
+#ifdef Q_WS_MAC
+ bool oldSmooth = qt_applefontsmoothing_enabled;
+ qt_applefontsmoothing_enabled = false;
+#endif
QPainter p(&img);
+#ifdef Q_WS_MAC
+ qt_applefontsmoothing_enabled = oldSmooth;
+#endif
+
m_view->render(&p);
}