get rid of QT3_SUPPORT and some cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14720 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-08-17 08:43:48 +00:00
parent 05c1fd0832
commit 76bf4f5a79
2 changed files with 3 additions and 4 deletions

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

View File

@ -13,7 +13,6 @@
#define CHECKEDWIDGETS_H
#include "BCView.h"
//#include <QLabel>
class QLabel;
class QLineEdit;