qt5base-lts/tests/auto/widgets
Volker Hilsheimer 0e6b31019f Fix placement of placeholder text in QLineEdits with action icons
After dc794f7622, side widgets only got
space if they were not fading out, but the logic was not correctly
accounting for side widgets that never fade, such as buttons added via
QLineEdit::addAction.

Fix this to give visible widgets space, unless they are fading out. That
was the intent of the original change. Rename the variable to make its
purpose clearer, and reset it at the end of the fade-out animation.

Add a much-needed test that relies on private APIs to verify that the
effective margins are calculated correctly.

Fixes: QTBUG-94824
Pick-to: 6.2 6.1 5.15
Change-Id: If2ee6be52be9e4f9be1e91f72f27681ce27def6d
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-07-06 23:09:51 +02:00
..
dialogs Fix wrong C-style cast, use correct QTest::keyClick overload 2021-04-28 10:15:29 +02:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
itemviews BLACKLIST tst_QListView::internalDragDropMove for OpenSUSE leap 2021-06-21 08:20:27 +03:00
kernel QWidgetAction: add test for defaultWidget() being deleted before action 2021-06-22 11:38:32 +02:00
styles Repolish child widgets when parent style sheet changes 2021-07-05 17:36:04 +02:00
util Remove the qmake project files 2021-01-07 15:32:28 +01:00
widgets Fix placement of placeholder text in QLineEdits with action icons 2021-07-06 23:09:51 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00