summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-17 10:49:33 +0200
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-18 14:54:51 +0200
commit2b0f2c1c8452c16723a15f00117c96c57bb017a8 (patch)
tree28a3c95d3191c5f404cb89693307d007cd2eb20b /doc
parentbb3a4e11584aa089e3d0c565522eda28b009a7c5 (diff)
Added a QTest::qWaitForWindowShown function that waits for window manager on X11.
On X11 it calls the qt_x11_wait_for_window_manager from QtGui, allowing to wait until the window has been mapped and reparented into a frame decoration parent. Reviewed-by: Olivier Goffart
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/code/src_qtestlib_qtestcase.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
index bf2a8973ea..951dfbbdf0 100644
--- a/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
+++ b/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
@@ -225,5 +225,11 @@ void MyTestClass::cleanup()
QTest::qSleep(250);
//! [23]
+//! [24]
+QWidget widget;
+widget.show();
+QTest::qWaitForWindowShown(&widget);
+//! [24]
+
}