Make the test pass on high res mac displays
Change-Id: I05f156faae85abe11edc954dd358ddfcfd320c74 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>bb10
parent
83eb09d591
commit
19ed646bce
|
|
@ -4051,9 +4051,9 @@ void tst_QTableView::mouseWheel()
|
|||
QWheelEvent verticalEvent(pos, delta, 0, 0, Qt::Vertical);
|
||||
QWheelEvent horizontalEvent(pos, delta, 0, 0, Qt::Horizontal);
|
||||
QApplication::sendEvent(view.viewport(), &horizontalEvent);
|
||||
QVERIFY(qAbs(view.horizontalScrollBar()->value() - horizontalPositon) < 10);
|
||||
QVERIFY(qAbs(view.horizontalScrollBar()->value() - horizontalPositon) < 15);
|
||||
QApplication::sendEvent(view.viewport(), &verticalEvent);
|
||||
QVERIFY(qAbs(view.verticalScrollBar()->value() - verticalPosition) < 10);
|
||||
QVERIFY(qAbs(view.verticalScrollBar()->value() - verticalPosition) < 15);
|
||||
}
|
||||
#endif // !QT_NO_WHEELEVENT
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue