historycombobox¶
The historycombobox module contains the HistoryComboBox widget
- class openlp.core.common.historycombobox.HistoryComboBox(parent=None)[source]¶
Bases: PyQt5.QtWidgets.QComboBox
The HistoryComboBox widget emulates the QLineEdit returnPressed signal for when the Enter or Return 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¶