summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-12 13:09:17 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-12 13:09:17 (GMT)
commit0bd86cda4650c32919879314b1d4608056090875 (patch)
tree544fd6a516444f3a974421baaadb7e8ac0ea0478
parentd6b8f81a2440e7a507ecbb1becd90ef284510787 (diff)
downloadQt-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.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 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();