qt5base-lts/tests/auto/gui/text
Vladimir Belyavsky 991c056438 QTextLayout: fix maximumWidth() for a text containing line separator
This is improved version of previous fix
013c346a8d that was reverted because it
broke some tests for Quick Text. The problem was that it did not work
correctly in the case the text was wrapped to a fixed width.
To deal with this we'll accumulate current line full width (as if it
hadn't been wrapped) in layout data (layoutData->currentMaxWidth).
Then when the next line is explicitly wrapped by line or paragraph
separator, this accumulated width will be used to adjust layout's
maximum width.

Change-Id: Iad7119d9808e1db15fe1fbc5db049c3db928529f
Fixes: QTBUG-89557
Fixes: QTBUG-104986
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2022-11-19 18:03:32 +03:00
..
qabstracttextdocumentlayout Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qcssparser Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qfont Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qfontcache Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qfontdatabase Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qfontmetrics Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qglyphrun Fix type mismatch compiler warning in tst_QGlyphRun 2022-11-10 17:16:59 +01:00
qinputcontrol Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qrawfont Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qstatictext Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qsyntaxhighlighter Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtextblock Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtextcursor Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtextdocument Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtextdocumentfragment Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtextdocumentlayout QTextDocumentLayout: Account for topMargin when hit-testing 2022-09-05 16:29:11 +00:00
qtextformat Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtextimagehandler Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextlayout QTextLayout: fix maximumWidth() for a text containing line separator 2022-11-19 18:03:32 +03:00
qtextlist Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtextmarkdownimporter Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtextmarkdownwriter Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtextobject Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtextodfwriter Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtextpiecetable Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtextscriptengine Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qtexttable Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qzip Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00