From 0fc65ada5138230d47bd24feb89d496e1a2730ae Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 3 Mar 2009 16:39:29 +0000 Subject: [PATCH] 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 --- widgets/combobox.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/widgets/combobox.cpp b/widgets/combobox.cpp index 02c4f76f8..315fbc638 100644 --- a/widgets/combobox.cpp +++ b/widgets/combobox.cpp @@ -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)); }