From aca108a174dcb97b55d1604e24670dab63f0e0f5 Mon Sep 17 00:00:00 2001 From: Jacek Poplawski Date: Fri, 24 Nov 2023 12:38:25 +0100 Subject: 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 Reviewed-by: Volker Hilsheimer --- tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/widgets/widgets/qlineedit') 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 -- cgit v1.2.3