diff options
author | Shawn Rutledge <[email protected]> | 2025-04-25 14:37:27 +0200 |
---|---|---|
committer | Shawn Rutledge <[email protected]> | 2025-04-29 21:08:27 +0200 |
commit | 17a225f09ac5ec7ebd065197917ddd9586571ec1 (patch) | |
tree | a3ed48f4af9166ed058cc374dbd23d9d569473c1 /examples/quick/particles/system/doc | |
parent | 7824b0b3f3bbb86ce4a1b23551d15c35c441ff1b (diff) |
When a user activates the boldAction for example, the code was replacing
QTextCharFormat's font with a default-constructed font that has the bold
attribute set, which meant that it could not be bold, italic, underlined
struck out, and with a custom size and color at the same time. On the
other hand, when we do it the current way:
textArea.cursorSelection.font.bold = checked
we call QQuickTextSelection::font(), QFont::setBold(), and then
QQuickTextSelection::setFont(). (QFont is a QML value type, so it's the
only way.) Perhaps at some point, something was going wrong with that,
but it seems to work now.
Amends 045f9ce192d841f3cc36d514b5f238b46488b41e
Fixes: QTBUG-136250
Pick-to: 6.8 6.9
Change-Id: I268e5814e7aa52aeb5aaec2d1a8fbfbc0d670236
Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'examples/quick/particles/system/doc')
0 files changed, 0 insertions, 0 deletions