/**
- * \file qt2/checkedwidgets.C
+ * \file qt4/checkedwidgets.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
// 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);
}
void setWidget(bool valid, QLineEdit * input, QLabel * label)
{
if (valid)
- input->unsetPalette();
+ input->setPalette(QPalette());
else
setWarningColor(input);
return;
if (valid)
- label->unsetPalette();
+ label->setPalette(QPalette());
else
setWarningColor(label);
}