retype.ui.line_edit
- QPlainTextEdit subclass which mimics QLineEdit. The idea is to make it
hotswappable for QLineEdit with no changes needed, so that you can have a QLineEdit without its inherent limitations, like not being able to modify the undo behaviour, not being able to use QCursor, etc.
Adapted from ssokolow’s OneLineSpellTextEdit: https://gist.github.com/ssokolow/abb20a30415fa4debce912c38060ca6a
NOTE: * textEdited probably works differently from QLineEdit’s textEdited, because I
am not sure yet how to replicate it exactly. For now it emits when the text changes by user key press.
Unimplemented signals: editingFinished, inputRejected
Classes
|