mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a comment explaining the need for current_text
This commit is contained in:
parent
1b6fc0668d
commit
a4e68799ae
@ -519,6 +519,9 @@ class EditWithComplete(EnComboBox):
|
|||||||
self.setText(text)
|
self.setText(text)
|
||||||
self.selectAll()
|
self.selectAll()
|
||||||
|
|
||||||
|
# Create a Qt user property for the current text so that when this widget
|
||||||
|
# is used as an edit widget in a table view it selects all text, as
|
||||||
|
# matching the behavior of all other Qt widgets.
|
||||||
current_text = pyqtProperty(str, fget=text, fset=set_current_text, user=True)
|
current_text = pyqtProperty(str, fget=text, fset=set_current_text, user=True)
|
||||||
|
|
||||||
def selectAll(self):
|
def selectAll(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user