historycombobox¶
The historycombobox
module contains the HistoryComboBox widget
-
class
openlp.core.ui.lib.historycombobox.
HistoryComboBox
(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QComboBox
The
HistoryComboBox
widget emulates the QLineEditreturnPressed
signal for when theEnter
orReturn
keys are pressed, and saves anything that is typed into the edit box into its list.-
focusOutEvent
(event)[source]¶ Override the inherited focusOutEvent to save the current text to the dropdown list.
Parameters: event – The focus event
-
keyPressEvent
(event)[source]¶ Override the inherited keyPressEvent method to emit the
returnPressed
signal and to save the current text to the dropdown list.Parameters: event – The keyboard event
-
returnPressed
¶
-