From c6c90a0c5a7d6f04e247e919b1f51c2d4be616d0 Mon Sep 17 00:00:00 2001 From: Matthew Cattell Date: Mon, 12 Sep 2011 17:47:37 +0200 Subject: hack to allow qWaitForWindowShown to be used in test cases that use QWindow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id51aaf81d898f9159e4587613f5e34c3de9a5808 Reviewed-on: http://codereview.qt-project.org/4690 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- src/testlib/qtestsystem.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/testlib/qtestsystem.h') 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 #include #include +#include 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; + } } -- cgit v1.2.3