aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Lefebvre <frederic.lefebvre@qt.io>2025-09-02 11:02:46 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2026-03-10 12:35:59 +0000
commit0482934d87857e06893a14f13d5954546b59f493 (patch)
treeb0dae663592f190b376a5828baa54bf363e1eb41
parent2a33e20ab1145e7ae503ec50dc8fde04c68b243a (diff)
Remove Redundant calls to requestActivate in tst_QQuickGridView
tst_QQuickGridView include calls to requestActivate() after a window is shown. This call is superfluous for the current test and should be removed. Remove the unnecessary requestActivate() calls to simplify the code. Task-number: QTBUG-139705 Change-Id: Ibeb039a09aeedbd91a5b5843f8aec4ba2d9e0898 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 6738cc98fff88a5ea114bac1e2c16a7b9e467b1d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c9f3f8b1b5f1710471b9ee47cfc0be2d44758b54)
-rw-r--r--tests/auto/quick/qquickgridview/tst_qquickgridview.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp b/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
index aa8080d358..3b6f72b402 100644
--- a/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
+++ b/tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
@@ -4091,7 +4091,6 @@ void tst_QQuickGridView::columnCount()
QQuickView window;
window.setSource(testFileUrl("gridview4.qml"));
window.show();
- window.requestActivate();
QVERIFY(QTest::qWaitForWindowActive(&window));
QQuickGridView *view = qobject_cast<QQuickGridView*>(window.rootObject());
@@ -6747,7 +6746,6 @@ void tst_QQuickGridView::keyNavigationEnabled()
QScopedPointer<QQuickView> window(createView());
window->setSource(testFileUrl("keyNavigationEnabled.qml"));
window->show();
- window->requestActivate();
QVERIFY(QTest::qWaitForWindowActive(window.data()));
QQuickGridView *gridView = qobject_cast<QQuickGridView *>(window->rootObject());