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>
bb10
Matthew Cattell 2011-09-12 17:47:37 +02:00 committed by Samuel Rødal
parent d96057f8f4
commit c6c90a0c5a
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}
}