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:
parent
235f81fa36
commit
0fc65ada51
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user