diff options
author | Carl Schwan <carl@carlschwan.eu> | 2024-04-10 16:30:42 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-05-07 12:28:59 -0700 |
commit | ab2f4ef8fad82fd07dac8768b8dcb94b11b271b6 (patch) | |
tree | b24d4c9f6e65150566b195a545794386b30114cc /tests/auto/gui/text/qtexttable/tst_qtexttable.cpp | |
parent | fb2ea1e52a03f87e041a61b936183175df37b5bf (diff) |
QTextDocument: Add support for responsive images
Add support for the max-width css attribute in image. This allows images
to be responsive: it adapts their size to the size of the QTextDocument
so that they never grow bigger than the QTextDocument pageSize.
This is implemented for the image handler used in QTextEdit and other
QtWidget text related classes.
[ChangeLog][QtGui][CSS] The max-width style can now be applied to
<img/> to set the maximum width in pixels or percentage.
Task-number: QTBUG-12283
Change-Id: Ic94e16279a1240ab4a509823de59dc0bfc920bb9
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/gui/text/qtexttable/tst_qtexttable.cpp')
0 files changed, 0 insertions, 0 deletions