mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 20:36:26 +00:00
init
This commit is contained in:
15
ui/implements/components/focusSelectAllLineEdit.py
Normal file
15
ui/implements/components/focusSelectAllLineEdit.py
Normal file
@ -0,0 +1,15 @@
|
||||
from PySide6.QtWidgets import QLineEdit
|
||||
|
||||
|
||||
class FocusSelectAllLineEdit(QLineEdit):
|
||||
def mousePressEvent(self, event):
|
||||
super().mousePressEvent(event)
|
||||
self.selectAll()
|
||||
|
||||
def focusInEvent(self, event):
|
||||
super().focusInEvent(event)
|
||||
self.selectAll()
|
||||
|
||||
def focusOutEvent(self, event):
|
||||
super().focusOutEvent(event)
|
||||
self.deselect()
|
Reference in New Issue
Block a user