Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
4.7.1
-
Symbian^3, RelTestRound2
-
8b7c98123eadf9263c6bde4b1263bd64fc388c8d
Description
This error was found in BC testing between Qt 4.6.3 and 4.7 releases.
Following test case is failed on Symbian platform. But it is passed with Qt 4.6.3.
void tst_QTreeView::indexRowSizeHint() { QStandardItemModel model(10, 1); PublicView view; view.setModel(&model); QModelIndex index = model.index(5, 0); QPushButton *w = new QPushButton("Test"); view.setIndexWidget(index, w); view.show(); #if !defined(Q_OS_SYMBIAN) QCOMPARE(view. (index), w->sizeHint().height()); #else QCOMPARE(view.indexRowSizeHint(index), w->sizeHint().height()+10); #endif }
FAIL! : tst_QTreeView::indexRowSizeHint() Compared values are not the same
Actual (view.indexRowSizeHint(index)): 39
Expected (w->sizeHint().height()+10): 47
Loc: [G:\QtBc\QtBcFinal\bc\tests\gui\qtreeview\tst_qtreeview.cpp(2873)]
tst_QTreeView::indexRowSizeHinttets is changed in Qt 4.7.2 to
QCOMPARE(view. (index), w->sizeHint().height());
But still failed. Test result:
FAIL! : tst_QTreeView::indexRowSizeHint() Compared values are not the same
Actual (view.indexRowSizeHint(index)): 41
Expected (w->sizeHint().height()+10): 39
Loc: [G:\QtBc\QtBcFinal\bc\tests\gui\qtreeview\tst_qtreeview.cpp(2873)]
It works correctly on Windows platform.
Such changes will really impact on application view for application developed and compiled using Qt 4.6.3 but run on devices with Qt 4.7.