diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-04-26 15:41:47 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-04-28 08:38:59 (GMT) |
commit | 5d033928fc94e04cb4d7746dae2269f2be753925 (patch) | |
tree | 5c1f8cec0cdc0d31ae6c8c7c8a3bb22e2a2b8f90 /tests/auto/qbearertestcommon.h | |
parent | 07ba36e03540591f25c75593f8a24c307ab4a8cd (diff) | |
download | Qt-5d033928fc94e04cb4d7746dae2269f2be753925.zip Qt-5d033928fc94e04cb4d7746dae2269f2be753925.tar.gz Qt-5d033928fc94e04cb4d7746dae2269f2be753925.tar.bz2 |
Fix tab stop in QPainter::drawText()
Even though we'd set the local tabstops variable to eight times the
width of 'x', we'd never use this value anywhere, causing the text
layout to use a default value of 80. This looked okay with some font
sizes, but since it did not depend on the size of font, the tab in
a large font would be too small and potentially the same size or
smaller than a single character/space. We enable setting the tabstops
on the layout whenever it hasn't been explicitly set on the QTextOption.
Task-number: QTBUG-1638
Reviewed-by: Trond
Diffstat (limited to 'tests/auto/qbearertestcommon.h')
0 files changed, 0 insertions, 0 deletions