Add some more output to debug a flaky test.
Task-number: QTBUG-23638 Change-Id: Ib6a8634ede4b6461e41ce6843ac2654dcd1999f5 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
parent
8e09e0dc45
commit
b780196a95
@ -2999,7 +2999,10 @@ void tst_QTreeView::styleOptionViewItem()
|
||||
QItemSelection sel(model.index(0,0), model.index(0,modelColumns-1));
|
||||
QRect rect;
|
||||
view.aiv_priv()->renderToPixmap(sel.indexes(), &rect);
|
||||
QTRY_VERIFY(delegate.count == visibleColumns);
|
||||
if (delegate.count != visibleColumns) {
|
||||
qDebug() << rect << view.rect() << view.isVisible();
|
||||
}
|
||||
QTRY_COMPARE(delegate.count, visibleColumns);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -3024,7 +3027,10 @@ void tst_QTreeView::styleOptionViewItem()
|
||||
QItemSelection sel(model.index(0,0), model.index(0,modelColumns-1));
|
||||
QRect rect;
|
||||
view.aiv_priv()->renderToPixmap(sel.indexes(), &rect);
|
||||
QTRY_VERIFY(delegate.count == visibleColumns);
|
||||
if (delegate.count != visibleColumns) {
|
||||
qDebug() << rect << view.rect() << view.isVisible();
|
||||
}
|
||||
QTRY_COMPARE(delegate.count, visibleColumns);
|
||||
#endif
|
||||
|
||||
//test dynamic models
|
||||
|
Loading…
Reference in New Issue
Block a user