diff options
author | Liang QI <liang.qi@nokia.com> | 2009-10-20 16:35:11 (GMT) |
---|---|---|
committer | Liang QI <liang.qi@nokia.com> | 2009-10-20 16:35:11 (GMT) |
commit | 613866eb719e35fa2459cb12d46315ca9dcefa62 (patch) | |
tree | 411a29c9d47f3873e7a184487defe8db65855ef2 /tests/auto | |
parent | 339b5b04a98ad3a5569180b0a1a000e82e985867 (diff) | |
download | Qt-613866eb719e35fa2459cb12d46315ca9dcefa62.zip Qt-613866eb719e35fa2459cb12d46315ca9dcefa62.tar.gz Qt-613866eb719e35fa2459cb12d46315ca9dcefa62.tar.bz2 |
Fix tst_QHeaderView::length() on Symbian.
Just the default font size will not work for this case. We set it to smaller one. Notice: we should make sure view->length() is different between view->setStretchLastSection(true) and view->setStretchLastSection(false).
RevBy: Aleksandar Babic
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qheaderview/tst_qheaderview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/qheaderview/tst_qheaderview.cpp b/tests/auto/qheaderview/tst_qheaderview.cpp index 3286768..c13e829 100644 --- a/tests/auto/qheaderview/tst_qheaderview.cpp +++ b/tests/auto/qheaderview/tst_qheaderview.cpp @@ -682,9 +682,12 @@ void tst_QHeaderView::visualIndexAt() void tst_QHeaderView::length() { -#ifdef Q_OS_WINCE +#if defined(Q_OS_WINCE) QFont font(QLatin1String("Tahoma"), 7); view->setFont(font); +#elif defined(Q_OS_SYMBIAN) + QFont font(QLatin1String("Series 60 Sans"), 6); + view->setFont(font); #endif view->setStretchLastSection(true); view->show(); |