diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-11-25 23:00:14 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-11-25 23:00:14 (GMT) |
commit | 41b455303b83d07cbffbddbee8d3898d6d81f62a (patch) | |
tree | dd3ffef48258573b7b362ee80a98dc42937d1dc7 /tools/qml/qdeclarativetester.cpp | |
parent | 7be365682055db5791e5854d9695c62b942205ab (diff) | |
parent | c2f6fe50c06e4285085db17ea3a9d9254cf21f48 (diff) | |
download | Qt-41b455303b83d07cbffbddbee8d3898d6d81f62a.zip Qt-41b455303b83d07cbffbddbee8d3898d6d81f62a.tar.gz Qt-41b455303b83d07cbffbddbee8d3898d6d81f62a.tar.bz2 |
Merge branch '4.7-upstream' into 4.7-water
Diffstat (limited to 'tools/qml/qdeclarativetester.cpp')
-rw-r--r-- | tools/qml/qdeclarativetester.cpp | 9 |
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); } |