mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 00:15:16 +00:00
18 lines
289 B
C++
18 lines
289 B
C++
#include <QLineEdit>
|
|
|
|
class FocusLineEdit : public QLineEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
FocusLineEdit(QWidget *parent);
|
|
virtual ~FocusLineEdit()
|
|
{
|
|
}
|
|
|
|
protected:
|
|
void focusInEvent(QFocusEvent *e);
|
|
void mousePressEvent(QMouseEvent *me);
|
|
|
|
bool _selectOnMousePress;
|
|
};
|