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