qt5base-lts/tests/auto/gui
Eskil Abrahamsen Blomfeldt 7094466f7d Interpret fixed CSS line-height as minimum rather than absolute
The QTextBlockFormat::FixedHeight overrides the line height
regardless of its calculated height. If the line contains
objects or text which is higher than the specified line height,
using FixedHeight will cause them to overlap with the previous
line. This is not what happens in normal web browsers. The
expected behavior is that the line height given in CSS is the
minimum height, but that we still reserve space needed to display
everything without overlaps.

To make it possible for people to retain the old behavior, we
introduce the -qt-line-height-type property, which allows them
to override the default.

This also fixes output from toHtml() to use the new property
rather than set the minimum height of the paragraph or the
"line-spacing" property, which does not exist in either CSS nor
in Qt.

[ChangeLog][QtGui][Important Behavior Changes] When line height
is specified in pixels, this is now interpreted as the minimum
line height rather than an absolute line height to avoid overlaps.
To get the old behavior, use the -qt-line-height-type property in
CSS and set it to "fixed".

Task-number: QTBUG-51962
Change-Id: Ic2dde649b69209672170dad4c2de1e1c432a1078
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
2016-04-19 09:32:10 +00:00
..
image Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
itemmodels QStandardItemModel: Reset the flags on clear() 2016-02-17 11:39:13 +00:00
kernel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
math3d Updated license headers 2016-01-21 18:55:18 +00:00
painting Remove the traces of the discontinued android-no-sdk platform 2016-03-30 10:12:34 +00:00
qopengl Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
qopenglconfig Updated license headers 2016-01-21 18:55:18 +00:00
text Interpret fixed CSS line-height as minimum rather than absolute 2016-04-19 09:32:10 +00:00
util Updated license headers 2016-01-21 18:55:18 +00:00
gui.pro Add qopenglconfig test. 2015-02-02 23:05:41 +00:00