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 <yann.bodson@nokia.com>
This commit is contained in:
Andrew den Exter 2012-04-03 14:27:09 +10:00 committed by Qt by Nokia
parent 368a3a736c
commit b3264e2cb6
1 changed files with 1 additions and 1 deletions

View 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);