diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-03-25 13:38:54 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-03-25 13:38:54 (GMT) |
commit | e0bd0b685c913e6bf1b1f46ed28fc233aa5694ac (patch) | |
tree | a67834b5030461f149d4a1e47736b0d4cf07042e /tests/auto/qwidget | |
parent | 761cac16eb0a6d32f9e7d558867c5c1bbfb244f9 (diff) | |
parent | 9b40f0275043566a6e1f1471e1f608dd66929b81 (diff) | |
download | Qt-e0bd0b685c913e6bf1b1f46ed28fc233aa5694ac.zip Qt-e0bd0b685c913e6bf1b1f46ed28fc233aa5694ac.tar.gz Qt-e0bd0b685c913e6bf1b1f46ed28fc233aa5694ac.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into windows-7-multitouch
Diffstat (limited to 'tests/auto/qwidget')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 42f496a..dfd0792 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -343,6 +343,7 @@ private slots: void paintOutsidePaintEvent(); #endif void updateOnDestroyedSignal(); + void toplevelLineEditFocus(); private: bool ensureScreenSize(int width, int height); @@ -8727,5 +8728,18 @@ void tst_QWidget::updateOnDestroyedSignal() QTest::qWait(200); } +void tst_QWidget::toplevelLineEditFocus() +{ + testWidget->hide(); + + QLineEdit w; + w.show(); + qt_x11_wait_for_window_manager(&w); + QTest::qWait(200); + + QCOMPARE(QApplication::activeWindow(), &w); + QCOMPARE(QApplication::focusWidget(), &w); +} + QTEST_MAIN(tst_QWidget) #include "tst_qwidget.moc" |