1 #ifndef QVALIDATEDLINEEDIT_H
2 #define QVALIDATEDLINEEDIT_H
6 /** Line edit that can be marked as "invalid" to show input validation feedback. When marked as invalid,
7 it will get a red background until it is focused.
9 class QValidatedLineEdit : public QLineEdit
13 explicit QValidatedLineEdit(QWidget *parent = 0);
17 void focusInEvent(QFocusEvent *evt);
23 void setValid(bool valid);
29 #endif // QVALIDATEDLINEEDIT_H