summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-09-10 13:24:12 +0000
committerdeva <deva>2008-09-10 13:24:12 +0000
commit13960b2e71db99ac6de3251d92d4490b08542635 (patch)
treec9288d0791a6f0e2f02260a7f9ab88be13001596
parenteef5f4e325280e17bf134857ee773f533439fb05 (diff)
Error pallette is now only set on lineedit.
-rw-r--r--client/widgets/combobox.cc4
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()