From b3264e2cb6a8fe87754aa1335ab9f8d5e3910c14 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Tue, 3 Apr 2012 14:27:09 +1000 Subject: [PATCH] Fix QQuickTextInput test instability. Use a QWindow to steal focus rather than a second QQuickView, as it appears there may be some issue with shared GL resources between views. Change-Id: I8a134e3b4a1e54f645d0071543ec8f94338ff315 Reviewed-by: Yann Bodson --- tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp index 1102951..4f2f3cb 100644 --- a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp +++ b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp @@ -2402,7 +2402,7 @@ void tst_qquicktextinput::cursorVisible() QCOMPARE(input.isCursorVisible(), true); QCOMPARE(spy.count(), 5); - QQuickView alternateView; + QWindow alternateView; alternateView.show(); alternateView.requestActivateWindow(); QTest::qWaitForWindowShown(&alternateView); -- 2.7.4