summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2013-03-18 18:16:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-19 18:16:41 +0100
commit0654c066d9b67e5c261b708196096311d695adcd (patch)
treed5811e73376305520364c490d7b02458355ba917 /src/corelib/tools
parentbd8630763c407f723533e4f29f24647d96a79288 (diff)
Move QTextEngine implementation details from QTextLayout
As of now, we'll have everything related to the additional formats handling just in a single place. Make specialData private to prevent accessing it from outside. This helped in tracking-down several related issues: - in format(const QScriptItem *), the resolvedFormatIndices can not be empty at that point, so the code path is dead; - in resolveAdditionalFormats(), testing if formats has not been indexed yet is not needed since they are indexed just in the setter; - in useRawFont mode, hasFormats() didn't check if QTextEngine really has some formats, which potentially leads to formatting artifacts. Change-Id: Id4b912888fd5a1fa83f01007170134b6386e2879 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/corelib/tools')
0 files changed, 0 insertions, 0 deletions