diff options
author | Matthew Cattell <matthew.cattell@nokia.com> | 2011-09-12 17:47:37 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-12 21:49:30 +0200 |
commit | c6c90a0c5a7d6f04e247e919b1f51c2d4be616d0 (patch) | |
tree | 77923a4fa267f0bebaf457d84361e64d28306286 /src | |
parent | d96057f8f4b2b2bbf73e5de8b2dd565b295ebe01 (diff) |
hack to allow qWaitForWindowShown to be used in test cases that use QWindow
Change-Id: Id51aaf81d898f9159e4587613f5e34c3de9a5808
Reviewed-on: http://codereview.qt-project.org/4690
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestsystem.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h index de20abeeee..0165e51528 100644 --- a/src/testlib/qtestsystem.h +++ b/src/testlib/qtestsystem.h @@ -45,6 +45,7 @@ #include <QtTest/qtestcase.h> #include <QtCore/qcoreapplication.h> #include <QtCore/qelapsedtimer.h> +#include <QtGui/QWindow> QT_BEGIN_HEADER @@ -82,6 +83,12 @@ namespace QTest #endif return true; } + inline static bool qWaitForWindowShown(QWindow *window) + { + Q_UNUSED(window); + qWait(200); + return true; + } } |