aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickapplicationwindow
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-05-12 13:46:06 +0200
committerMitch Curtis <mitch.curtis@qt.io>2020-05-13 09:47:09 +0200
commit5a61d637e08647045b26a96b51a0df3c2c35a47b (patch)
tree146cbf8060d94cc54b1f91b7c03dcb8162167ebc /tests/auto/qquickapplicationwindow
parent5e46b5bb617b5e15cebc4033bfd0ae9ab2248aba (diff)
Reduce dependencies on QtGraphicalEffects
- Make QtGraphicalEffects optional in tests - Mention that QtGraphicalEffects is required for relevant examples Change-Id: I3ac7d06add931e0a10c3df7edc4e458ba5519c75 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/auto/qquickapplicationwindow')
-rw-r--r--tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp b/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
index 80124230..b2c0c272 100644
--- a/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
+++ b/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
@@ -763,6 +763,9 @@ void tst_QQuickApplicationWindow::focusAfterPopupClosed()
void tst_QQuickApplicationWindow::clearFocusOnDestruction()
{
+ if (!canImportModule("import QtGraphicalEffects 1.15; DropShadow {}"))
+ QSKIP("Test requires QtGraphicalEffects");
+
QQmlEngine engine;
QQmlComponent component(&engine);
component.loadUrl(testFileUrl("clearfocusondestruction.qml"));