Fix table view test

The resizeColumnsToContents test would fail on some machines, as the
requested 40 pixels where to small to accommodate the header size hint
as well. Raising it to 60 pixels helps make the test pass.

Change-Id: I2a5026fd18425e236849a1cef25ba8d899c7ae5a
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
bb10
Lars Knoll 2015-05-20 10:17:28 +02:00 committed by Simon Hausmann
parent 05cd8d3bfe
commit c200ef633e
1 changed files with 4 additions and 4 deletions

View File

@ -2249,11 +2249,11 @@ void tst_QTableView::resizeColumnsToContents_data()
QTest::addColumn<int>("rowHeight");
QTest::addColumn<int>("columnWidth");
QTest::newRow("10x10 grid shown 40x40")
<< 10 << 10 << false << 40 << 40 << 40 << 40;
QTest::newRow("10x10 grid not shown 60x60")
<< 10 << 10 << false << 60 << 60 << 60 << 60;
QTest::newRow("10x10 grid not shown 40x40")
<< 10 << 10 << true << 40 << 40 << 41 << 41;
QTest::newRow("10x10 grid shown 60x60")
<< 10 << 10 << true << 60 << 60 << 61 << 61;
}
void tst_QTableView::resizeColumnsToContents()