Older devices may have lower screen resolution. In this case, the hardcoded width may not work as expected. For example, all text may not fit in QLineEdit. This was the reason why the tst_qlineedit::textMargin test failed on some Android devices (especially x86 emulator with Android API 29). When the left and right margins were set to 20, all tested text did not fit in QLineEdit. When we clicked at the beginning of QLineEdit, we clicked on the second character of the text. The cursor was moved to position 1, which caused the test to fail. This commit updates textMargin test to make sure that tested text will fit in to the QLineEdit. Task-number: QTBUG-87417 Fixes: QTQAINFRA-6897 Change-Id: I35352ac1e6f975e72d5c9638f8520f8ddd1d56ae Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> (cherry picked from commit 0a017308cca154b6f906c6e143fb33fe109316bc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit fdf4738be3a941a14a955aa6931ddfee2145ae58)
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%