From d75a9444aa9a0d8a5988c8b7d79aec87fb2727e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Mon, 6 Jun 2011 12:11:07 +0200 Subject: 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. --- tests/auto/qwidget/tst_qwidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/auto/qwidget') diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 6ca391fdc9..12b3410d62 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -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); -- cgit v1.2.3