Fix QQuickTextInput test instability.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 3 Apr 2012 04:27:09 +0000 (14:27 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Apr 2012 04:36:14 +0000 (06:36 +0200)
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 <yann.bodson@nokia.com>
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp

index 1102951..4f2f3cb 100644 (file)
@@ -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);