summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qlineedit
diff options
context:
space:
mode:
authorJacek Poplawski <jacek.poplawski@qt.io>2023-11-24 12:38:25 +0100
committerJacek Poplawski <jacek.poplawski@qt.io>2023-11-27 20:43:36 +0100
commitaca108a174dcb97b55d1604e24670dab63f0e0f5 (patch)
tree1a9ca5899bb7d3f1d9f7b1747b08f57f03375613 /tests/auto/widgets/widgets/qlineedit
parentd48e81f7a46e7cf968fa5bc88296eb8de8dc77c5 (diff)
Configure tst_qlineedit correctly for VxWorks
In the test, we compare the position of the cursor after making a selection. The behavior in Windows, QNX and VxWorks is different than usual - they do not jump to the beginning of the selection. It is configured in the unselectingWithLeftOrRightChangesCursorPosition() function. Task-number: QTBUG-115777 Change-Id: Ibb721be123bb04aac957f23d468920edcac8fbc4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets/qlineedit')
-rw-r--r--tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
index 845b6054a3..b79a32535e 100644
--- a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
+++ b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp
@@ -5008,7 +5008,7 @@ void tst_QLineEdit::QTBUG59957_clearButtonLeftmostAction()
bool tst_QLineEdit::unselectingWithLeftOrRightChangesCursorPosition()
{
-#if defined Q_OS_WIN || defined Q_OS_QNX //Windows and QNX do not jump to the beginning of the selection
+#if defined Q_OS_WIN || defined Q_OS_QNX || defined Q_OS_VXWORKS //Windows, QNX and VxWorks do not jump to the beginning of the selection
return true;
#endif
// Platforms minimal/offscreen also need left after unselecting with right