diff --git a/src/frontends/qt4/checkedwidgets.C b/src/frontends/qt4/checkedwidgets.C index da5072d4e9..c694ac1069 100644 --- a/src/frontends/qt4/checkedwidgets.C +++ b/src/frontends/qt4/checkedwidgets.C @@ -35,7 +35,7 @@ void setWarningColor(QWidget * widget) // So copy the appropriate parts of the function here: QPalette pal = widget->palette(); pal.setColor(QPalette::Active, - QColorGroup::Foreground, + QPalette::Foreground, QColor(255, 0, 0)); widget->setPalette(pal); } @@ -44,7 +44,7 @@ void setWarningColor(QWidget * widget) void setWidget(bool valid, QLineEdit * input, QLabel * label) { if (valid) - input->unsetPalette(); + input->setPalette(QPalette()); else setWarningColor(input); @@ -52,7 +52,7 @@ void setWidget(bool valid, QLineEdit * input, QLabel * label) return; if (valid) - label->unsetPalette(); + label->setPalette(QPalette()); else setWarningColor(label); } diff --git a/src/frontends/qt4/checkedwidgets.h b/src/frontends/qt4/checkedwidgets.h index 9d72d1aa4d..a915a1016c 100644 --- a/src/frontends/qt4/checkedwidgets.h +++ b/src/frontends/qt4/checkedwidgets.h @@ -13,7 +13,6 @@ #define CHECKEDWIDGETS_H #include "BCView.h" -//#include class QLabel; class QLineEdit;