diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-17 08:49:33 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-18 12:54:51 (GMT) |
commit | 2b0f2c1c8452c16723a15f00117c96c57bb017a8 (patch) | |
tree | 28a3c95d3191c5f404cb89693307d007cd2eb20b /src/testlib/qtestcase.cpp | |
parent | bb3a4e11584aa089e3d0c565522eda28b009a7c5 (diff) | |
download | Qt-2b0f2c1c8452c16723a15f00117c96c57bb017a8.zip Qt-2b0f2c1c8452c16723a15f00117c96c57bb017a8.tar.gz Qt-2b0f2c1c8452c16723a15f00117c96c57bb017a8.tar.bz2 |
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 'src/testlib/qtestcase.cpp')
-rw-r--r-- | src/testlib/qtestcase.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 74c3af9..96f8a1b 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -731,6 +731,16 @@ QT_BEGIN_NAMESPACE \sa QTest::qSleep() */ +/*! \fn void QTest::qWaitForWindowManager(QWidget *window) + + Waits until the window is shown in the screen. This is mainly useful for + asynchronous systems like X11, where a window will be mapped to screen some + time after being asked to show itself on the screen. + + Example: + \snippet doc/src/snippets/code/src_qtestlib_qtestcase.cpp 24 +*/ + /*! \class QTest::QTouchEventSequence \inmodule QtTest |