QGraphicsProxyWidget: make tolerance in mapToGlobal test at least 4
a61bf508e3 reduced the tolerance from 4 to
3 in one case, making the test more rather than less flaky on systems
with a device-pixel-ratio of 1.
Pick-to: 6.4 6.3 6.2
Change-Id: I245443f0dcb1aa40176c127025501b63f12f161b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
bb10
parent
ef4372dcae
commit
e6c7d049f4
|
|
@ -3531,7 +3531,7 @@ void tst_QGraphicsProxyWidget::mapToGlobal() // QTBUG-41135
|
|||
QCOMPARE(embeddedWidget->mapFromGlobal(embeddedCenterGlobal), embeddedCenter);
|
||||
// This should be equivalent to the view center give or take rounding
|
||||
// errors due to odd window margins
|
||||
const int Tolerance = qCeil(3 * view.devicePixelRatio());
|
||||
const int Tolerance = qCeil(4 * view.devicePixelRatio());
|
||||
const QPoint viewCenter = view.geometry().center();
|
||||
QVERIFY2((viewCenter - embeddedCenterGlobal).manhattanLength() <= Tolerance,
|
||||
msgPointMismatch(embeddedCenterGlobal, viewCenter).constData());
|
||||
|
|
|
|||
Loading…
Reference in New Issue