]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/checkedwidgets.C
get rid of QT3_SUPPORT and some cleanup
[lyx.git] / src / frontends / qt4 / checkedwidgets.C
index da5072d4e9c6ee17997dfcffac3965d4219a662c..c694ac10694c8fd880fb0d50f8c6131e65c2fcd2 100644 (file)
@@ -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);
 }