we don't want to set the palette otherwise we get bad results like white-on-white; all the button painting is handled manually in the paint method, so we're safe there for colours

svn path=/trunk/KDE/kdelibs/; revision=934711
This commit is contained in:
Aaron J. Seigo 2009-03-03 16:39:29 +00:00
parent 235f81fa36
commit 0fc65ada51

View File

@ -94,12 +94,6 @@ void ComboBoxPrivate::syncBorders()
syncActiveRect();
KComboBox *native = q->nativeWidget();
QColor color = Theme::defaultTheme()->color(Theme::TextColor);
QPalette p = native->palette();
p.setColor(QPalette::Normal, QPalette::Text, color);
p.setColor(QPalette::Inactive, QPalette::Text, color);
native->setPalette(p);
native->setFont(Theme::defaultTheme()->font(Theme::DefaultFont));
}