From a565e59626c02617d39c496f43b4aa0ae1069dc9 Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Thu, 18 Sep 2008 12:45:04 -0500 Subject: [PATCH] Bug 455836 - Native theme for menulist widget (ff toolbar). r=vladimir. --- widget/src/qt/nsNativeThemeQt.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/widget/src/qt/nsNativeThemeQt.cpp b/widget/src/qt/nsNativeThemeQt.cpp index 0679f31faea4..ec196daed007 100644 --- a/widget/src/qt/nsNativeThemeQt.cpp +++ b/widget/src/qt/nsNativeThemeQt.cpp @@ -234,11 +234,17 @@ nsNativeThemeQt::DrawWidgetBackground(nsIRenderingContext* aContext, style->drawComplexControl(QStyle::CC_ComboBox, &comboOpt, qPainter); 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; + } case NS_THEME_DROPDOWN_TEXT: case NS_THEME_DROPDOWN_TEXTFIELD: - break; case NS_THEME_TEXTFIELD: case NS_THEME_TEXTFIELD_MULTILINE: case NS_THEME_LISTBOX: {