mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 08:15:19 +01:00
More stupid PyQt enums
This commit is contained in:
parent
5e40d11834
commit
b53d0d5dab
2 changed files with 3 additions and 3 deletions
|
|
@ -138,7 +138,7 @@ def __init__(self, parent=None, add_clear_action=True, as_url=None):
|
|||
self.timer = QTimer()
|
||||
self.timer.setSingleShot(True)
|
||||
self.timer.timeout.connect(self.timer_event, type=Qt.ConnectionType.QueuedConnection)
|
||||
self.setInsertPolicy(self.NoInsert)
|
||||
self.setInsertPolicy(QComboBox.InsertPolicy.NoInsert)
|
||||
self.setMaxCount(self.MAX_COUNT)
|
||||
self.setSizeAdjustPolicy(QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon)
|
||||
self.setMinimumContentsLength(25)
|
||||
|
|
@ -342,7 +342,7 @@ def __init__(self, parent=None):
|
|||
self.setCompleter(completer)
|
||||
|
||||
self.setEditable(True)
|
||||
self.setInsertPolicy(self.NoInsert)
|
||||
self.setInsertPolicy(QComboBox.InsertPolicy.NoInsert)
|
||||
self.setSizeAdjustPolicy(QComboBox.SizeAdjustPolicy.AdjustToMinimumContentsLengthWithIcon)
|
||||
self.setMinimumContentsLength(10)
|
||||
self.tool_tip_text = self.toolTip()
|
||||
|
|
|
|||
|
|
@ -672,7 +672,7 @@ class HistoryLineEdit(QComboBox): # {{{
|
|||
def __init__(self, *args):
|
||||
QComboBox.__init__(self, *args)
|
||||
self.setEditable(True)
|
||||
self.setInsertPolicy(self.NoInsert)
|
||||
self.setInsertPolicy(QComboBox.InsertPolicy.NoInsert)
|
||||
self.setMaxCount(10)
|
||||
self.setClearButtonEnabled = self.lineEdit().setClearButtonEnabled
|
||||
self.textChanged = self.editTextChanged
|
||||
|
|
|
|||
Loading…
Reference in a new issue