2016-01-12 03:37:30 +00:00
|
|
|
#include <QLineEdit>
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
class FocusLineEdit : public QLineEdit {
|
2018-07-15 13:51:05 +01:00
|
|
|
Q_OBJECT
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
|
|
|
FocusLineEdit(QWidget* parent);
|
|
|
|
virtual ~FocusLineEdit() {}
|
2016-01-12 03:37:30 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
protected:
|
|
|
|
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
|
|
|
};
|