diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-08-12 13:09:17 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-08-12 13:09:17 (GMT) |
commit | 0bd86cda4650c32919879314b1d4608056090875 (patch) | |
tree | 544fd6a516444f3a974421baaadb7e8ac0ea0478 | |
parent | d6b8f81a2440e7a507ecbb1becd90ef284510787 (diff) | |
download | Qt-0bd86cda4650c32919879314b1d4608056090875.zip Qt-0bd86cda4650c32919879314b1d4608056090875.tar.gz Qt-0bd86cda4650c32919879314b1d4608056090875.tar.bz2 |
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
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |