diff options
author | Liang Qi <liang.qi@nokia.com> | 2010-02-09 15:05:50 (GMT) |
---|---|---|
committer | Liang Qi <liang.qi@nokia.com> | 2010-02-09 15:05:50 (GMT) |
commit | 0a9c7a44c6a9ca134c7a23a33a9285787a7a6d19 (patch) | |
tree | ba72b28601b6db7dd87e181cf7baa059775186fc /tests | |
parent | e1b4ac7eec876d80dc2984f192baa6295b027793 (diff) | |
download | Qt-0a9c7a44c6a9ca134c7a23a33a9285787a7a6d19.zip Qt-0a9c7a44c6a9ca134c7a23a33a9285787a7a6d19.tar.gz Qt-0a9c7a44c6a9ca134c7a23a33a9285787a7a6d19.tar.bz2 |
Fix tst_QAbstractItemView::task250754_fontChange and tst_QAbstractItemView::QTBUG6407_extendedSelection for Symbian & 5800
We should consider the difference between Point and Pixel for font size. And also the margin and some other settings in style for views.
Reviewed-by: TrustMe
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qabstractitemview/tst_qabstractitemview.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/auto/qabstractitemview/tst_qabstractitemview.cpp b/tests/auto/qabstractitemview/tst_qabstractitemview.cpp index 504ceac..ea86c16 100644 --- a/tests/auto/qabstractitemview/tst_qabstractitemview.cpp +++ b/tests/auto/qabstractitemview/tst_qabstractitemview.cpp @@ -1213,14 +1213,14 @@ void tst_QAbstractItemView::task250754_fontChange() tree.setModel(m); w.show(); - w.resize(150,150); + w.resize(150,240); QTest::qWait(30); QFont font = tree.font(); - font.setPointSize(5); + font.setPixelSize(10); tree.setFont(font); QTRY_VERIFY(!tree.verticalScrollBar()->isVisible()); - font.setPointSize(45); + font.setPixelSize(60); tree.setFont(font); //now with the huge items, the scrollbar must be visible QTRY_VERIFY(tree.verticalScrollBar()->isVisible()); @@ -1444,7 +1444,10 @@ void tst_QAbstractItemView::QTBUG6407_extendedSelection() for(int i = 0; i < 50; ++i) view.addItem(QString::number(i)); - view.resize(200,200); + QFont font = view.font(); + font.setPixelSize(10); + view.setFont(font); + view.resize(200,240); view.show(); QApplication::setActiveWindow(&view); |