diff options
author | deva <deva> | 2008-09-10 13:24:12 +0000 |
---|---|---|
committer | deva <deva> | 2008-09-10 13:24:12 +0000 |
commit | 13960b2e71db99ac6de3251d92d4490b08542635 (patch) | |
tree | c9288d0791a6f0e2f02260a7f9ab88be13001596 /client | |
parent | eef5f4e325280e17bf134857ee773f533439fb05 (diff) |
Error pallette is now only set on lineedit.
Diffstat (limited to 'client')
-rw-r--r-- | client/widgets/combobox.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 <QCompleter> #include <QRegExpValidator> #include <QRegExp> +#include <QLineEdit> #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() |