aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoroldmud0 <3421260-oldmud0@users.noreply.gitlab.com>2019-05-10 17:58:06 +0000
committeroldmud0 <3421260-oldmud0@users.noreply.gitlab.com>2019-05-10 17:58:06 +0000
commit15db260639a157bffaaf55d10a6e4351aa4c154a (patch)
tree1347ce1978b7aeedf15e0e2e57faa2b43c04bfdc /include
parent744cf727f0102fc51dde5a2f0269433138270448 (diff)
parent2e4f0117b067c6d795a7d42fe23162d41260ff74 (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')
-rw-r--r--include/courtroom.h1
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>