qt-material-widgets/components/textfield.h

21 lines
406 B
C
Raw Normal View History

2016-04-14 13:47:27 +00:00
#ifndef TEXTFIELD_H
#define TEXTFIELD_H
2016-04-14 14:11:41 +00:00
#include <QLineEdit>
2016-04-14 13:47:27 +00:00
2016-04-14 14:11:41 +00:00
class TextField : public QLineEdit
2016-04-14 13:47:27 +00:00
{
Q_OBJECT
public:
explicit TextField(QWidget *parent = 0);
~TextField();
protected:
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
};
#endif // TEXTFIELD_H