2016-01-12 03:37:30 +00:00
|
|
|
#include <QLineEdit>
|
|
|
|
|
|
|
|
class FocusLineEdit : public QLineEdit
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
Q_OBJECT
|
2016-01-12 03:37:30 +00:00
|
|
|
public:
|
2018-07-15 13:51:05 +01:00
|
|
|
FocusLineEdit(QWidget *parent);
|
|
|
|
virtual ~FocusLineEdit()
|
|
|
|
{
|
|
|
|
}
|
2016-01-12 03:37:30 +00:00
|
|
|
|
|
|
|
protected:
|
2018-07-15 13:51:05 +01:00
|
|
|
void focusInEvent(QFocusEvent *e);
|
|
|
|
void mousePressEvent(QMouseEvent *me);
|
2016-01-12 03:37:30 +00:00
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
bool _selectOnMousePress;
|
2016-01-12 03:37:30 +00:00
|
|
|
};
|