BlackBerry: fix tst_qlistview

Because fonts are bigger on BlackBerry than those assumed when the test was
written, explicitly adjust the font size on this platform.

Change-Id: I6a23c28c2d32edf744dd5de09ea0a97fd5f9b6d6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Rafael Roquetto 2013-06-12 16:12:31 -03:00 committed by The Qt Project
parent 27107b43a3
commit 1d23172c99

View File

@ -1469,6 +1469,14 @@ void tst_QListView::wordWrap()
lv.setModel(&model);
lv.setWordWrap(true);
lv.setFixedSize(150, 150);
#ifdef Q_OS_BLACKBERRY
// BB standard font size is too big, triggering
// a horizontal scrollbar even when word-wrapping
// is enabled
QFont font = lv.font();
font.setPointSize(5);
lv.setFont(font);
#endif // Q_OS_BLACKBERRY
lv.showNormal();
QApplication::processEvents();