Fix tst_QTableWidget::task219380_removeLastRow

Again, dure to the fix to QTBUG-18551.

Reviewed-by: Olivier
(cherry picked from commit 1e4d824462b44315944a27ec328f7e400a67c96c)
bb10
Gabriel de Dietrich 2011-04-21 13:25:23 +02:00 committed by Olivier Goffart
parent 78ec3b2bd9
commit 560114a415
1 changed files with 2 additions and 3 deletions

View File

@ -41,6 +41,7 @@
#include <QtTest/QtTest>
#include "../../shared/util.h"
#include <qeventloop.h>
#include <qlist.h>
#include <qpair.h>
@ -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()