diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-02-13 12:56:07 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-02-20 06:00:42 +0100 |
commit | d1186f9299f1351236269a0db39d43fdae28a944 (patch) | |
tree | ad4def14a9c36dd6945bd3ad5d32b8209138a7bf /src/corelib | |
parent | 7981dbfaf371a368fbd69e935768b310f42a0e5a (diff) |
Doc: Update description of QTextDocument::characterCount
A QTextDocument always contains a QChar::ParagraphSeparator, so
characterCount() will always return actual count + 1.
The tests confirm this behavior, make it explicit in the docs.
Fixes: QTBUG-80597
Change-Id: I91040fb6eb2c4fae5235458c695110f8f15bdfea
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions