diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-09-27 11:02:47 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-10-04 06:34:28 (GMT) |
commit | 6c53410d8104064b53beccb1f2014c980735aefb (patch) | |
tree | a51098f65ad262abdbfa3c3b294538e48501186d /doc/src/snippets/code/src_script_qscriptcontext.cpp | |
parent | 8683e35e958fe5363e6ebc22f76042525151a40b (diff) | |
download | Qt-6c53410d8104064b53beccb1f2014c980735aefb.zip Qt-6c53410d8104064b53beccb1f2014c980735aefb.tar.gz Qt-6c53410d8104064b53beccb1f2014c980735aefb.tar.bz2 |
Fixed performance regression in curve stroking.
Change c46688b8a88da made us use m_curve_threshold for both
QBezier::shifted and QBezier::toPolygon, and adjusted the threshold
dynamically based on the painter scale. Since the threshold in shifted
was already relative to the pen width, it is independent from the
painter scale. Instead, we need to set a separate threshold for dashing.
Also, in several places we were calling setCurveThresholdForTransform
with the painter matrix even though we were transforming the points into
device coordinate space before stroking.
Task-number: QTBUG-13894
Reviewed-by: Gunnar Sletta
(cherry picked from commit d60dc7cba21794866c9382f83080fab1a129eb08)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptcontext.cpp')
0 files changed, 0 insertions, 0 deletions