Bug 455836 - Native theme for menulist widget (ff toolbar). r=vladimir.

This commit is contained in:
Oleg Romashin 2008-09-20 04:05:36 -04:00
Родитель 895dfbc7cb
Коммит 75b3a9e410
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -234,11 +234,17 @@ nsNativeThemeQt::DrawWidgetBackground(nsIRenderingContext* aContext,
style->drawComplexControl(QStyle::CC_ComboBox, &comboOpt, qPainter); style->drawComplexControl(QStyle::CC_ComboBox, &comboOpt, qPainter);
break; break;
} }
case NS_THEME_DROPDOWN_BUTTON: case NS_THEME_DROPDOWN_BUTTON: {
QStyleOptionComboBox option;
InitComboStyle(aWidgetType, aFrame, r, option);
style->drawPrimitive(QStyle::PE_FrameDefaultButton, &option, qPainter);
style->drawPrimitive(QStyle::PE_IndicatorSpinDown, &option, qPainter);
break; break;
}
case NS_THEME_DROPDOWN_TEXT: case NS_THEME_DROPDOWN_TEXT:
case NS_THEME_DROPDOWN_TEXTFIELD: case NS_THEME_DROPDOWN_TEXTFIELD:
break;
case NS_THEME_TEXTFIELD: case NS_THEME_TEXTFIELD:
case NS_THEME_TEXTFIELD_MULTILINE: case NS_THEME_TEXTFIELD_MULTILINE:
case NS_THEME_LISTBOX: { case NS_THEME_LISTBOX: {