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
parent
d96057f8f4
commit
c6c90a0c5a
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue