qt6-bb10/tests/auto/widgets
Eskil Abrahamsen Blomfeldt f66a8edc20 Fix irrelevant error case in QSplitter test
The tst_QSplitter::replaceWidget() is testing that if you
replace a longer QLabel with a shorter one in a horizontal
splitter layout, then we *only* get a resize for the new,
shorter label (expanding it horizontally to match the
replaced widget, as documented).

But the test accidentally triggered the QTextDocument backend
for the QLabel by including HTML tags in its text. Due to
QTBUG-82954, it is possible that the QTextDocument height
includes the leading of the font in the last line, so if
the default font has a leading, the new label will be higher
than the QSplitter, and the splitter will expand its height,
causing resizes for the other labels as well.

Since this is not the case we are testing here, and it is
currently blocking the fix for QTBUG-80554, we simply make
the new label use the same plain text backend as the others.

Task-number: QTBUG-82954
Change-Id: I6bfa1f3648b0fc9758c57ab2fa95be2451995df3
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2020-04-02 08:09:31 +02:00
..
dialogs cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
effects Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
graphicsview CMake: Disable two graphicsview tests 2020-03-18 15:44:06 +01:00
itemviews QAbstractItemView::dataChanged(): optimize call to QWidget::update() 2020-03-28 09:03:18 +01:00
kernel Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
styles cmake: Remove APPLE prefix from platform names 2020-03-16 17:57:56 +01:00
util Move undo framework out of Qt Widgets 2020-03-30 12:36:29 +02:00
widgets Fix irrelevant error case in QSplitter test 2020-04-02 08:09:31 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00