This commit is contained in:
Kovid Goyal 2023-05-29 13:31:53 +05:30
parent 5519a2264c
commit c05013c260
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -515,15 +515,11 @@ class EditWithComplete(EnComboBox):
def text(self):
return self.lineEdit().text()
@pyqtProperty(str)
def currentText(self):
return self.lineEdit().text()
@currentText.setter
def currentText(self, text):
def set_current_text(self, text):
self.setText(text)
self.lineEdit().selectAll()
self.selectAll()
current_text = pyqtProperty(str, fget=text, fset=set_current_text, user=True)
def selectAll(self):
self.lineEdit().selectAll()