qt5base-lts/src
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
..
3rdparty Update bundled zlib to version 1.2.13 2022-11-18 13:14:23 +01:00
android Android: Fix incorrect fullscreen dimensions 2022-11-07 09:06:34 +00:00
concurrent Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
corelib qcompilerdetection.h: include <version> 2022-11-19 09:01:44 +00:00
dbus Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
entrypoint Win32: Add a W version entry point 2022-10-28 12:00:01 +08:00
gui QTextLayout: fix maximumWidth() for a text containing line separator 2022-11-19 18:03:32 +03:00
network QHostAddress: unexport QIPv6Address 2022-11-18 13:02:36 -08:00
opengl eglfs: Improve z-order handling 2022-10-29 19:44:10 +01:00
openglwidgets Fix rhi flush eval perf. and native window problems 2022-11-14 11:05:48 +01:00
platformsupport Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
plugins macOS: Don't send posted events via runloop observer 2022-11-18 19:25:20 +01:00
printsupport Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
sql Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
testlib Add note to blacklist documentation about how keywords relate 2022-11-18 19:25:20 +01:00
tools Update windeployqt plugins 2022-11-19 04:34:36 +01:00
widgets Modernize QMessageBox documentation and example 2022-11-18 19:25:20 +01:00
xml Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
CMakeLists.txt Replace the syncqt.pl script with syncqt tool 2022-09-27 13:12:11 +02:00