diff options
author | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2024-02-09 15:24:46 +0100 |
---|---|---|
committer | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2024-04-30 10:19:25 +0200 |
commit | 9dc6344449088e4a71922a09343119132cb3f2fd (patch) | |
tree | 3106c441000e50ba736f6dbb3c833f50e358d2d0 /tests/auto/widgets/widgets | |
parent | 21b1dff5bdd72f2f4991d1637aeebb9ae293a183 (diff) |
tst_QMenuBar::activatedCount() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: I0816de76b2098580aa04262e5317ad028de702e0
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 1a24b5c7d2..c5dc95bf0e 100644 --- a/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp +++ b/tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp @@ -350,7 +350,6 @@ void tst_QMenuBar::activatedCount() QFETCH( bool, forceNonNative ); initWindowWithSimpleMenuBar(w, forceNonNative); w.show(); - QApplicationPrivate::setActiveWindow(&w); QVERIFY(QTest::qWaitForWindowActive(&w)); QTest::keyClick(static_cast<QWidget *>(0), Qt::Key_A, Qt::ControlModifier ); |