From 13960b2e71db99ac6de3251d92d4490b08542635 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 10 Sep 2008 13:24:12 +0000 Subject: Error pallette is now only set on lineedit. --- client/widgets/combobox.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/widgets') diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc index 2bf6087..a1a69af 100644 --- a/client/widgets/combobox.cc +++ b/client/widgets/combobox.cc @@ -29,6 +29,7 @@ #include #include #include +#include #include "common.h" @@ -153,7 +154,8 @@ void ComboBox::changed() palette.setBrush(QPalette::Base, QBrush(QColor(230, 200, 200))); } - setPalette(palette); + if(lineEdit()) lineEdit()->setPalette(palette); + else setPalette(palette); } void ComboBox::enable() -- cgit v1.2.3