tests: add a capability check for QWindow::requestActivate() call

This amends b65159a5ea.

Pick-to: 6.2
Change-Id: I6055004375b440997ea41b3e4538854780202e10
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Liang Qi 2021-12-08 14:12:11 +01:00
parent ee7573f61f
commit c8609d1e7a

View File

@ -2701,6 +2701,9 @@ void tst_QWindow::keepPendingUpdateRequests()
void tst_QWindow::activateDeactivateEvent()
{
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
QSKIP("QWindow::requestActivate() is not supported.");
class Window : public QWindow
{
public: