Contents
if (force || (wantWebFonts != _usingWebFonts))
{
_usingWebFonts = wantWebFonts;
if (_usingWebFonts)
WebFontUtils::loadWebFontCombo (_comboFont);
else
WebFontUtils::restoreFontCombo (_comboFont);
// Note: By default, a QComboBox popup menu shows at most 10 items at
// a time. If there are more than that number of items, the popup has
// a vertical scroll bar. IF the total number of fonts is no more than
// sixteen (16), increase the maximum number of visible items to 16.
// Otherwise, set it to the default value of 10 visible items.
//
if (_comboFont->count() > 16)
{
_comboFont->setMaxVisibleItems (10); // default
}
else