summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsproxywidget
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-12 18:00:17 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-12 18:19:44 (GMT)
commit6a1be803bf94b8af4a4766e31df9b441d1c81eed (patch)
tree9ccccad91609ab85244b21ceb4c9934ec7fab707 /tests/auto/qgraphicsproxywidget
parentf55d36cea933d801d421562f3d8b6b2ff0fb0fc1 (diff)
downloadQt-6a1be803bf94b8af4a4766e31df9b441d1c81eed.zip
Qt-6a1be803bf94b8af4a4766e31df9b441d1c81eed.tar.gz
Qt-6a1be803bf94b8af4a4766e31df9b441d1c81eed.tar.bz2
QGraphicsView tests on X11
Diffstat (limited to 'tests/auto/qgraphicsproxywidget')
-rw-r--r--tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp b/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
index 9db34bb..58d7896 100644
--- a/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
+++ b/tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp
@@ -3059,8 +3059,10 @@ void tst_QGraphicsProxyWidget::actionsContextMenu()
QGraphicsView view(&scene);
view.show();
+ QApplication::setActiveWindow(&view);
QTest::qWaitForWindowShown(&view);
view.setFocus();
+ QTRY_VERIFY(view.hasFocus());
if (hasFocus)
scene.addWidget(widget)->setFocus();