diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-08-14 15:38:31 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-08-14 15:55:10 (GMT) |
commit | a7b24170890aad476345a5d7a56ded8d62c53df0 (patch) | |
tree | f4d8dd08f8801e984b9a35b5dee1fab2996d8781 /tests/auto/q3mainwindow | |
parent | 78fbb9cf6ef5e8440f0453ef60bd7845ce418745 (diff) | |
download | Qt-a7b24170890aad476345a5d7a56ded8d62c53df0.zip Qt-a7b24170890aad476345a5d7a56ded8d62c53df0.tar.gz Qt-a7b24170890aad476345a5d7a56ded8d62c53df0.tar.bz2 |
Avoid wrapping outside word boundaries in QTextDocument unless necessary
If you have a floating object which affects the width available to the
text, we need to recalculate the width of the text line. In the code,
the setLineWidth() call to do this would by default have WrapAnywhere
as its wrap mode, even when this was not necessary. The code has now
been moved so that WrapAnywhere is only used if we try to set the
line width to match the available width and detect that the text is
too wide (the natural text width exceeds the available space.)
Task-number: 240325
Reviewed-by: Simon Hausmann
Diffstat (limited to 'tests/auto/q3mainwindow')
0 files changed, 0 insertions, 0 deletions