summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLiang QI <liang.qi@nokia.com>2009-10-20 16:35:11 (GMT)
committerLiang QI <liang.qi@nokia.com>2009-10-20 16:35:11 (GMT)
commit613866eb719e35fa2459cb12d46315ca9dcefa62 (patch)
tree411a29c9d47f3873e7a184487defe8db65855ef2 /tests
parent339b5b04a98ad3a5569180b0a1a000e82e985867 (diff)
downloadQt-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')
-rw-r--r--tests/auto/qheaderview/tst_qheaderview.cpp5
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();