summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorVladimir Belyavsky <belyavskyv@gmail.com>2022-09-26 19:32:50 +0300
committerVladimir Belyavsky <belyavskyv@gmail.com>2022-10-06 08:43:11 +0000
commit4945fd93f13d2fc34adf260fd0e0325d0794f3f7 (patch)
treea6e96dd90f56a16ae77a5f75986bd295008716cf /tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
parentfd28c970750e0570bf1d107922fa29eae161e93d (diff)
QTextLayout: fix maximumWidth() for a text containing spaces
When laying out a text and calculating maxWidth, we must _always_ take into account the accumulated width of spaces (lbh.spaceData.textWidth) regardless of wrapMode, other text content, spaces position, etc. Fixes: QTBUG-106947 Change-Id: I2ac9af92ed7dd07c1e040bfcf83949a358d1c9c9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp')
0 files changed, 0 insertions, 0 deletions