From 0bd86cda4650c32919879314b1d4608056090875 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 12 Aug 2009 15:09:17 +0200 Subject: fix tst_QWidget::showAndMoveChild for Windows mobile This test created a widget at position (0,0) and grabbed the screen. That's a bad idea on Windows mobile because the upper task bar will cover the widget. Reviewed-by: thartman --- tests/auto/qwidget/tst_qwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index d798fd0..e20b12b 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -5309,6 +5309,7 @@ void tst_QWidget::moveChild() void tst_QWidget::showAndMoveChild() { QWidget parent(0, Qt::FramelessWindowHint); + parent.move(qApp->desktop()->availableGeometry().topLeft()); parent.resize(300, 300); parent.setPalette(Qt::red); parent.show(); -- cgit v0.12