put color constants in guiconstants.h

This commit is contained in:
Wladimir J. van der Laan
2011-07-25 18:39:52 +02:00
parent daa1a7398f
commit bbae0fc9ef
3 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
#include "qvalidatedlineedit.h"
#include "guiconstants.h"
QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) :
QLineEdit(parent), valid(true)
{
@@ -19,7 +21,7 @@ void QValidatedLineEdit::setValid(bool valid)
}
else
{
setStyleSheet("background:#FF8080");
setStyleSheet(STYLE_INVALID);
}
this->valid = valid;
}