diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-06-14 13:15:45 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-07-06 17:11:08 +0000 |
commit | 65ef4bab4ad0ef4a45ff56de3e143a588deac364 (patch) | |
tree | ced75482c0696dc4f70ed827add4a78d1152c33d /examples/quick/shapes/doc | |
parent | a670d760e351987ad23b445bfb08f6add1fb067b (diff) |
QQuickText: don't clear the text formats on every layout
In order to fix QTBUG-21919, 6ff9ba0 added a QTextLayout::clearFormats()
call to QQuickTextPrivate::updateLayout(). This patch moves that logic
to clearFormats(), called from setText() and setTextFormat() in order to
avoid clearing the formats on every text layout update.
This allows Qt Quick Controls 2 to extend QQuickText with support for
mnenonics by adding a text format range to underline the appropriate
piece of text in the internal QTextLayout.
Task-number: QTBUG-61422
Change-Id: I646d53f0feeeaa3c106db94f187c7accabdc6a61
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples/quick/shapes/doc')
0 files changed, 0 insertions, 0 deletions