1 #ifndef QVALIDATEDLINEEDIT_H
2 #define QVALIDATEDLINEEDIT_H
6 // Line edit that can be marked as "invalid". When marked as invalid,
7 // it will get a red background until it is focused.
8 class QValidatedLineEdit : public QLineEdit
12 explicit QValidatedLineEdit(QWidget *parent = 0);
16 void focusInEvent(QFocusEvent *evt);
22 void setValid(bool valid);
28 #endif // QVALIDATEDLINEEDIT_H