From 964b16e6d3750f2c0d9fb0732009ef4654b333b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 18 Sep 2024 16:02:33 +0200 Subject: [PATCH] tst_QWidget::tabOrderWithProxyOutOfOrder: Ensure Qt::TabFocusAllControls The test requires Qt::TabFocusAllControls, so Qt::TabFocusTextControls and/or Qt::TabFocusListControls, which is the default on macOS, is not sufficient. Change-Id: Iaf84c7ba67b978b942f396911048716417c38c03 Reviewed-by: Volker Hilsheimer (cherry picked from commit 283cfe0b80f83833a549d79e2787f5b936d90236) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index 0b803336da..0de06713e4 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -2591,6 +2591,9 @@ void tst_QWidget::tabOrderWithCompoundWidgets() void tst_QWidget::tabOrderWithProxyOutOfOrder() { + if (QGuiApplication::styleHints()->tabFocusBehavior() != Qt::TabFocusAllControls) + QSKIP("Test requires Qt::TabFocusAllControls tab focus behavior"); + Container container; container.setWindowTitle(QLatin1String(QTest::currentTestFunction())); container.setObjectName(QLatin1StringView("Container"));