Remove deprecated QTest::qWaitForWindowShown overload for QtWidgets
Not used anywhere in qtbase or other modules, so trivial to remove. Change-Id: I98575e77f181e617675e536ff0dd67ac93a2f0f5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
714409b23c
commit
bd49862e8e
|
|
@ -87,26 +87,4 @@ Q_WIDGETS_EXPORT Q_REQUIRED_RESULT bool QTest::qWaitForWindowExposed(QWidget *wi
|
|||
return false;
|
||||
}
|
||||
|
||||
/*! \fn bool QTest::qWaitForWindowShown(QWidget *widget, int timeout)
|
||||
\since 5.0
|
||||
\deprecated
|
||||
|
||||
Use qWaitForWindowExposed() instead.
|
||||
|
||||
Waits for \a timeout milliseconds or until the \a widget's window is exposed.
|
||||
Returns \c true if \c widget's window is exposed within \a timeout milliseconds, otherwise returns \c false.
|
||||
|
||||
This function does the same as qWaitForWindowExposed().
|
||||
|
||||
Example:
|
||||
|
||||
\code
|
||||
QWidget widget;
|
||||
widget.show();
|
||||
QTest::qWaitForWindowShown(&widget);
|
||||
\endcode
|
||||
|
||||
\sa qWaitForWindowActive(), qWaitForWindowExposed()
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -49,11 +49,6 @@ class QWidget;
|
|||
namespace QTest {
|
||||
Q_WIDGETS_EXPORT Q_REQUIRED_RESULT bool qWaitForWindowActive(QWidget *widget, int timeout = 5000);
|
||||
Q_WIDGETS_EXPORT Q_REQUIRED_RESULT bool qWaitForWindowExposed(QWidget *widget, int timeout = 5000);
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 0)
|
||||
QT_DEPRECATED Q_REQUIRED_RESULT inline static bool qWaitForWindowShown(QWidget *widget, int timeout = 5000)
|
||||
{ return QTest::qWaitForWindowExposed(widget, timeout); }
|
||||
#endif
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
Loading…
Reference in New Issue