From 560114a415a7734fbd4c006feabba895afbeba1c Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Thu, 21 Apr 2011 13:25:23 +0200 Subject: Fix tst_QTableWidget::task219380_removeLastRow Again, dure to the fix to QTBUG-18551. Reviewed-by: Olivier (cherry picked from commit 1e4d824462b44315944a27ec328f7e400a67c96c) --- tests/auto/qtablewidget/tst_qtablewidget.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/auto/qtablewidget/tst_qtablewidget.cpp b/tests/auto/qtablewidget/tst_qtablewidget.cpp index baa99eac2d..40aece4b36 100644 --- a/tests/auto/qtablewidget/tst_qtablewidget.cpp +++ b/tests/auto/qtablewidget/tst_qtablewidget.cpp @@ -41,6 +41,7 @@ #include +#include "../../shared/util.h" #include #include #include @@ -1471,10 +1472,8 @@ void tst_QTableWidget::task219380_removeLastRow() testWidget->removeRow(19); //we remove the last row - QApplication::processEvents(); // See QTBUG-18551 and its fix - //we make sure the editor is at the cell position - QCOMPARE(testWidget->cellWidget(18, 0)->geometry(), testWidget->visualItemRect(&item)); + QTRY_COMPARE(testWidget->cellWidget(18, 0)->geometry(), testWidget->visualItemRect(&item)); } void tst_QTableWidget::task262056_sortDuplicate() -- cgit v1.2.3