summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_widgets_qcheckbox.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2010-02-01 20:29:47 (GMT)
committerJesper Thomschutz <jesper.thomschutz@nokia.com>2010-02-03 12:40:21 (GMT)
commit12075ff6fd06ce1ad758cc088deabecddf2aee8e (patch)
treee43c173303cd93a81a727d2f0a778f878a0afdc7 /doc/src/snippets/code/src_gui_widgets_qcheckbox.cpp
parent7c25b9829aed56df6e3cfbc9ec8f771e7673df82 (diff)
downloadQt-12075ff6fd06ce1ad758cc088deabecddf2aee8e.zip
Qt-12075ff6fd06ce1ad758cc088deabecddf2aee8e.tar.gz
Qt-12075ff6fd06ce1ad758cc088deabecddf2aee8e.tar.bz2
Fixed text rendering via scaled QPainter on rasterPaintEngine / Symbian
Text rendering in Qt for Symbian looks very bad on a scaled QPainter. Instead of simply using a Symbian font with the right size it followed the code path that is usually used for "tricky transformation": Use the glyph outlines and rasterize them in Qt as QPainterPath. That's slow and especially ugly on Symbian since we do not (yet) get the glyph outlines from Symbian. This patch adds QFontEngineS60::setFontScale() so that QFontEngineS60 has one additional native font handle with the scaled size. The raster paint engine will call that function in case that the painter is scaled. Since we already have QFontEngineS60 specific code in the raster paint engine, this patch did not have to add #ifdefs. http://bugreports.qt.nokia.com/browse/QTBUG-7614 Task-number: QTBUG-7614 Reviewed-by: Jason Barron modified: gui/painting/qpaintengine_raster.cpp modified: gui/text/qfontengine_s60.cpp modified: gui/text/qfontengine_s60_p.h (cherry picked from commit 5a64033f89e07505bb77d3c172597b8df3cbd762)
Diffstat (limited to 'doc/src/snippets/code/src_gui_widgets_qcheckbox.cpp')
0 files changed, 0 insertions, 0 deletions