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>
This commit is contained in:
parent
d48e81f7a4
commit
aca108a174
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user