Skip to content

Commit

Permalink
tst_QWidget::tabOrderWithProxyOutOfOrder: Ensure Qt::TabFocusAllControls
Browse files Browse the repository at this point in the history
The test requires Qt::TabFocusAllControls, so Qt::TabFocusTextControls
and/or Qt::TabFocusListControls, which is the default on macOS, is not
sufficient.

Pick-to: 6.8
Change-Id: Iaf84c7ba67b978b942f396911048716417c38c03
Reviewed-by: Volker Hilsheimer <[email protected]>
  • Loading branch information
torarnv committed Sep 19, 2024
1 parent 3d1ec9e commit 283cfe0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 283cfe0

Please sign in to comment.