// 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);
}