mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
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:
parent
05c1fd0832
commit
76bf4f5a79
@ -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);
|
||||
}
|
||||
|
@ -13,7 +13,6 @@
|
||||
#define CHECKEDWIDGETS_H
|
||||
|
||||
#include "BCView.h"
|
||||
//#include <QLabel>
|
||||
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
|
Loading…
Reference in New Issue
Block a user