Prevent tst_QWidget::showAndMoveChild() from failing on KDE.

Since we grab the desktop the KDE task bar appears on top of the window
we're interested in. It's preferable to make the window a bit smaller.
This commit is contained in:
Samuel Rødal 2011-06-06 12:11:07 +02:00
parent 78264f333e
commit d75a9444aa

View File

@ -5170,6 +5170,7 @@ void tst_QWidget::showAndMoveChild()
QDesktopWidget desktop;
QRect desktopDimensions = desktop.availableGeometry(&parent);
desktopDimensions = desktopDimensions.adjusted(64, 64, -64, -64);
parent.setGeometry(desktopDimensions);
parent.setPalette(Qt::red);