Repair some of tst_qtableview tests on Android

The test task191545_dragSelectRows relied on the fact
that the view is not scrolling. But on a small screen,
it scrolls automatically.

Fixes: QTBUG-87407
Pick-to: 6.2 6.3
Change-Id: I691361c965ab03d8a012f2b83715c7c96d990ec5
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Andreas Buhr 2022-02-22 16:24:19 +01:00
parent bbae5c891b
commit 50f6356f8e
2 changed files with 2 additions and 3 deletions

View File

@ -3,6 +3,3 @@ osx
[mouseWheel:scroll down per pixel]
macos
# QTBUG-87407
[task191545_dragSelectRows]
android

View File

@ -4436,6 +4436,8 @@ void tst_QTableView::task191545_dragSelectRows()
QCoreApplication::sendEvent(tableVp, &cellPressEvent);
for (int i = 0; i < 6; ++i) {
// cellPos might have been updated by scrolling, so refresh
cellPos = table.visualRect(model.index(3+i, 3+i)).center();
cellPos.setX(cellPos.x() + cellRect.width());
cellPos.setY(cellPos.y() + cellRect.height());
QMouseEvent moveEvent(QEvent::MouseMove, cellPos, tableVp->mapToGlobal(cellPos),