Jean-Marc Lasgouttes 6e6976fbc5 Handle the case where breakAt cuts after trailing space
In this case, the extra element returned should empty but valid. The
row flag BreakAfter is set to indicate that we have a break there
(this principle will be used more generally in a forthcoming commit).

To detect that we cut at the trailing space, it is necessary to rely
on the difference between QTextLine::horizontalAdvance() and
QTextLine::naturalTextWidth() when the flag
QTextOption::IncludeTrailingSpaces is used: the trailing space is
taken into account in the later, but not in the former.

Somme comments have been added to make code intent clearer.
2021-12-07 17:04:47 +01:00
..
2020-11-24 21:20:25 +01:00
2020-10-13 09:57:36 +03:00
2017-07-03 13:46:30 -04:00
2020-11-30 10:44:28 +02:00
2021-02-27 13:27:05 -05:00
2021-02-27 13:27:05 -05:00
2020-10-13 09:57:36 +03:00
2020-10-25 09:28:34 +02:00
2020-10-25 09:28:34 +02:00