tst_QMdiArea::tabBetweenSubWindows(): Improve warning message

The test has been observed to be flaky, printing warnings
"Rubber band has different geometry". Output the geometries.

Task-number: QTBUG-59641
Change-Id: I6c209f2a98a07655e8523c012c5562d602d217ad
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Friedemann Kleint 2017-03-22 08:37:05 +01:00
parent 02d9225db5
commit e0becd6a8a

View File

@ -106,7 +106,8 @@ static bool tabBetweenSubWindowsIn(QMdiArea *mdiArea, int tabCount = -1, bool re
}
QMdiSubWindow *subWindow = subWindows.at(reverse ? subWindows.size() -1 - i : i);
if (rubberBand->geometry() != subWindow->geometry()) {
qWarning("Rubber band has different geometry");
qWarning().nospace() << "Rubber band of tab " << i << " has different geometry: "
<< rubberBand->geometry() << " (sub window: " << subWindow->geometry() << ").";
return false;
}
}