summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-06-06 12:11:07 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-06-06 12:38:41 +0200
commitd75a9444aa9a0d8a5988c8b7d79aec87fb2727e9 (patch)
treef2c59e879c2778779807fc9b520fec05500fe322 /tests
parent78264f333eb7c262380714ed6517562266f11a03 (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp1
1 files changed, 1 insertions, 0 deletions
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);