diff options
author | Liang Qi <liang.qi@qt.io> | 2021-12-08 14:12:11 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2021-12-08 21:08:04 +0100 |
commit | c8609d1e7a1f00827a7611182212c3d3bc6e03ff (patch) | |
tree | fcf45ec9c7b156bb00ce93cc3beb848182846c3d | |
parent | ee7573f61fe16ece4f07e7f48e0f47272ecdd535 (diff) |
tests: add a capability check for QWindow::requestActivate() call
This amends b65159a5ea8db05165b2eaab8e180a12f30063e4.
Pick-to: 6.2
Change-Id: I6055004375b440997ea41b3e4538854780202e10
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r-- | tests/auto/gui/kernel/qwindow/tst_qwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp index 9e8e1eac11..ff5a670322 100644 --- a/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp +++ b/tests/auto/gui/kernel/qwindow/tst_qwindow.cpp @@ -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: |