diff options
| author | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-05-10 17:58:06 +0000 |
|---|---|---|
| committer | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-05-10 17:58:06 +0000 |
| commit | 15db260639a157bffaaf55d10a6e4351aa4c154a (patch) | |
| tree | 1347ce1978b7aeedf15e0e2e57faa2b43c04bfdc /include/courtroom.h | |
| parent | 744cf727f0102fc51dde5a2f0269433138270448 (diff) | |
| parent | 2e4f0117b067c6d795a7d42fe23162d41260ff74 (diff) | |
Merge branch 'unicode-blips' into 'master'
Text is now advanced based on graphemes, rather than bytes.
`QTextBoundaryFinder` is used to determine the end of a grapheme cluster, and then the entire cluster is copied into `f_character`. This will not influence text comparisons, like when determining formatting characters.
The `f_character` being potentially more than one byte long is then used to advance the `tick_pos` to the correct position, using its length.
See merge request AttorneyOnline/AO2-Client!60
Diffstat (limited to 'include/courtroom.h')
| -rw-r--r-- | include/courtroom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/courtroom.h b/include/courtroom.h index ec9f9ef0..cc08f65d 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -48,6 +48,7 @@ #include <QFont> #include <QInputDialog> #include <QFileDialog> +#include <QTextBoundaryFinder> #include <stack> |
