QFontComboBox sometimes became too wide because of wrong fixed size
The fixed width should not be set on QFontComboBox itself, but on the
popup.
This regressed with commit bfb25c0352
,
and caused assistants preferences dialog to become wider than the
desktop.
Change-Id: I2059794fc12d34837cdb7dfded80df57d102a6f0
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
This commit is contained in:
parent
fb3f47b638
commit
16b90bb683
@ -548,7 +548,7 @@ bool QFontComboBox::event(QEvent *e)
|
||||
if (e->type() == QEvent::Resize) {
|
||||
QListView *lview = qobject_cast<QListView*>(view());
|
||||
if (lview) {
|
||||
setFixedWidth(qMin(width() * 5 / 3,
|
||||
lview->window()->setFixedWidth(qMin(width() * 5 / 3,
|
||||
QApplication::desktop()->availableGeometry(lview).width()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user