diff options
-rw-r--r-- | tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp b/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp index 1239abd0cf..16d478caa0 100644 --- a/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp +++ b/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp @@ -2112,9 +2112,8 @@ void tst_qsgtextinput::setHAlignClearCache() QTest::qWaitForWindowShown(&view); QTRY_COMPARE(input.nbPaint, 1); input.setHAlign(QSGTextInput::AlignRight); - QApplication::processEvents(); //Changing the alignment should trigger a repaint - QCOMPARE(input.nbPaint, 2); + QTRY_COMPARE(input.nbPaint, 2); } void tst_qsgtextinput::focusOutClearSelection() |