diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-04-21 11:25:23 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-04-21 11:25:23 (GMT) |
commit | 1e4d824462b44315944a27ec328f7e400a67c96c (patch) | |
tree | 0f985f91c4a4f48002ec38f1761ce67ba47e9681 /tests | |
parent | f540574b44aa874af22ce8b15598b854f28517d7 (diff) | |
download | Qt-1e4d824462b44315944a27ec328f7e400a67c96c.zip Qt-1e4d824462b44315944a27ec328f7e400a67c96c.tar.gz Qt-1e4d824462b44315944a27ec328f7e400a67c96c.tar.bz2 |
Fix tst_QTableWidget::task219380_removeLastRow
Again, dure to the fix to QTBUG-18551.
Reviewed-by: Olivier
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtablewidget/tst_qtablewidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qtablewidget/tst_qtablewidget.cpp b/tests/auto/qtablewidget/tst_qtablewidget.cpp index baa99ea..40aece4 100644 --- a/tests/auto/qtablewidget/tst_qtablewidget.cpp +++ b/tests/auto/qtablewidget/tst_qtablewidget.cpp @@ -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() |