mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
NOISSUE Flatten gui and logic libraries into MultiMC
This commit is contained in:
parent
dd13368085
commit
20b9f2b42a
1113 changed files with 1228 additions and 1401 deletions
|
|
@ -1,25 +0,0 @@
|
|||
#include "FocusLineEdit.h"
|
||||
#include <QDebug>
|
||||
|
||||
FocusLineEdit::FocusLineEdit(QWidget *parent) : QLineEdit(parent)
|
||||
{
|
||||
_selectOnMousePress = false;
|
||||
}
|
||||
|
||||
void FocusLineEdit::focusInEvent(QFocusEvent *e)
|
||||
{
|
||||
QLineEdit::focusInEvent(e);
|
||||
selectAll();
|
||||
_selectOnMousePress = true;
|
||||
}
|
||||
|
||||
void FocusLineEdit::mousePressEvent(QMouseEvent *me)
|
||||
{
|
||||
QLineEdit::mousePressEvent(me);
|
||||
if (_selectOnMousePress)
|
||||
{
|
||||
selectAll();
|
||||
_selectOnMousePress = false;
|
||||
}
|
||||
qDebug() << selectedText();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue