summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-11-19 11:22:17 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-11-19 11:27:52 (GMT)
commita1e1867ae3cac6b54cd06e9fc0ad1aa0b476fe9d (patch)
treeb0d740cea0ad7d049527a4b04f00d90ec48da413
parent80dfb33cc5fec8fd19e78a959e02588ce58736ee (diff)
downloadQt-a1e1867ae3cac6b54cd06e9fc0ad1aa0b476fe9d.zip
Qt-a1e1867ae3cac6b54cd06e9fc0ad1aa0b476fe9d.tar.gz
Qt-a1e1867ae3cac6b54cd06e9fc0ad1aa0b476fe9d.tar.bz2
Fix QCombobox painting regression on Windows
Some style relies on this broken behaviour that was fixed in commit e1a81c96790bee72ee4fbd2b0c4a7b48078c4ec1 The text on the combobox uses the wrong palette role. Reviewed-by: jbache
-rw-r--r--src/gui/styles/qwindowsstyle.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/styles/qwindowsstyle.cpp b/src/gui/styles/qwindowsstyle.cpp
index f894b82..30f2f35 100644
--- a/src/gui/styles/qwindowsstyle.cpp
+++ b/src/gui/styles/qwindowsstyle.cpp
@@ -2989,7 +2989,6 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
#ifndef QT_NO_COMBOBOX
case CC_ComboBox:
if (const QStyleOptionComboBox *cmb = qstyleoption_cast<const QStyleOptionComboBox *>(opt)) {
- p->save();
QBrush editBrush = cmb->palette.brush(QPalette::Base);
if ((cmb->subControls & SC_ComboBoxFrame)) {
if (cmb->frame) {
@@ -3059,7 +3058,6 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
proxy()->drawPrimitive(PE_FrameFocusRect, &focus, p, widget);
}
}
- p->restore();
}
break;
#endif // QT_NO_COMBOBOX