diff options
author | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2024-02-09 15:32:04 +0100 |
---|---|---|
committer | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2024-04-30 21:28:57 +0200 |
commit | 9d9d7ad5b824b3d0c4849f7b500744cc31ad9e1a (patch) | |
tree | c5f6d6dc93d201e3efb190e692a2e9fa88ef8034 /tests/auto/widgets/widgets | |
parent | 4da427374326ae25374b757cc3b8cd41700d6b62 (diff) |
tst_QMenuBar::check_altPress() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: I43e3a097e59f9c14ec2f599b12b707a2fcf98b36
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets')
-rw-r--r-- | tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp b/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp index 5e812d83a9..05b5b25a57 100644 --- a/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp +++ b/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp @@ -878,7 +878,6 @@ void tst_QMenuBar::check_altPress() initWindowWithSimpleMenuBar(w); w.show(); w.setFocus(); - QApplicationPrivate::setActiveWindow(&w); QVERIFY(QTest::qWaitForWindowActive(&w)); QTest::keyClick( &w, Qt::Key_Alt ); |