sneedmc/launcher/widgets/FocusLineEdit.h

18 lines
289 B
C
Raw Normal View History

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