diff options
author | Boris Dušek <me@dusek.me> | 2015-01-01 19:23:16 +0100 |
---|---|---|
committer | Boris Dušek <me@dusek.me> | 2015-02-13 20:53:26 +0000 |
commit | e6bbfc4d1a689b7201755416fb7bfb674f331179 (patch) | |
tree | d3e8b779a4a61c3b7f7760bbc7e0400171195d5b /examples | |
parent | 9f3bd7542c30c8940b2ef57b523a111d4b847bde (diff) |
Make QAccessibleTextWidget::attributes respect default document font
QTextFormat::font{Weight,PointSize}() etc. return the font trait explicitly
set on the QTextFormat, while QTextFormat::font() returns font which also
uses the QTextDocument::defaultFont() as a default for any font traits not
explicitly set on the QTextFormat. Accessibility support for text attributes
used the former, which was wrong; this commit fixes it to use the latter.
Also includes tests to verify the fix.
Change-Id: Iab7f2be1b68adaad847d1f29c9e5af2195416035
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions