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:
parent
27107b43a3
commit
1d23172c99
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user