summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-05-06 20:20:44 +0300
committerMichael Weghorn <m.weghorn@posteo.de>2023-06-09 07:20:13 +0300
commitc7b925757f9b55924b788a2f08d777baa0e63250 (patch)
treed0086f8721eb057713f61ce1483c0b8d375f7625 /tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp
parent95d10ae682f1e6e67927166c3b04adc39f6aee23 (diff)
a11y atspi: Report correct char code point when it's > 65535
QString uses UTF-16 encoding and thus "unicode characters with code values above 65535 are stored using surrogate pairs, i.e., two consecutive QChars.". [1] When the character inside of text is retrieved using the GetCharacterAtOffset method of the AT-SPI Text interface, use QStringIterator to retrieve the character's actual codepoint instead of returning an invalid/incorrect one. [1] https://doc.qt.io/qt-6/qstring.html Pick-to: 6.6 Fixes: QTBUG-113438 Change-Id: I07108481716329fd23a92c88892eaedd3f9defc6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qstringbuilder/qstringbuilder1/stringbuilder.cpp')
0 files changed, 0 insertions, 0 deletions