pollymc/application/widgets/FocusLineEdit.h

18 lines
289 B
C
Raw Normal View History

#include <QLineEdit>
class FocusLineEdit : public QLineEdit
{
2018-07-15 18:21:05 +05:30
Q_OBJECT
public:
2018-07-15 18:21:05 +05:30
FocusLineEdit(QWidget *parent);
virtual ~FocusLineEdit()
{
}
protected:
2018-07-15 18:21:05 +05:30
void focusInEvent(QFocusEvent *e);
void mousePressEvent(QMouseEvent *me);
2018-07-15 18:21:05 +05:30
bool _selectOnMousePress;
};