diff --git a/sneakylineedit.h b/sneakylineedit.h new file mode 100644 --- /dev/null +++ b/sneakylineedit.h @@ -0,0 +1,19 @@ +#ifndef SNEAKYLINEEDIT_H +#define SNEAKYLINEEDIT_H + +#include +#include + +class SneakyLineEdit : public QLineEdit +{ + Q_OBJECT +public: + explicit SneakyLineEdit(QWidget *parent = 0); + +private: + void focusInEvent(QFocusEvent * event); + void focusOutEvent(QFocusEvent * event); + void setBold(bool bold); +}; + +#endif // SNEAKYLINEEDIT_H