summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprinterinfo.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2025-10-13 17:36:41 +0200
committerTor Arne Vestbø <[email protected]>2025-10-15 14:35:39 +0200
commita6cc78f4e26ef2e16ae65540be0d53f9e9fdbc2a (patch)
tree62f8534d441a4cc77d92666e96d9a48673f404b9 /src/printsupport/kernel/qprinterinfo.cpp
parent0f3793fea21b17e540265e0f802fdf7b1a6340fe (diff)
Teach QKeySequence::toString(Native) about C0 Control PicturesHEADdev
The Unicode C0 control codes correspond to the 32 control characters in ASCII from 0x00 and 0x1f. Since these are unprintable in their basic form, it makes sense to represent them as something printable via toString(). The Unicode Control Pictures block provides exactly that. We skip 0x0 (Null) as we don't distinguish between a missing key and the null character in Qt. Although there are also Control Pictures for space (0x20), del (0x7f), and others, we ignore these as they are not in C0. [ChangeLog][QtCore] QKeySequence::toString() now maps the C0 control characters to their equivialent in the Unicode Control Pictures block, if using QKeySequence::SequenceFormat::NativeText. Change-Id: I4525d08478ebeb2a321b035c96029a22fa5ed749 Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'src/printsupport/kernel/qprinterinfo.cpp')
0 files changed, 0 insertions, 0 deletions