Specialised GUI control for entering keyboard shortcut combinations. More...
|Clear contents and stored keys. More...|
|Remove the last key from the key sequence. More...|
|void||setContents (QKeySequence ks)|
|Emits contentsChanged() if the new sequence is not the same. More...|
|void||focusChanged (bool focus)|
|Needed for enabling/disabling buttons in ShortcutsDialog. More...|
|ShortcutLineEdit (QWidget *parent=0)|
|bool||isEmpty () const|
|void||keyPressEvent (QKeyEvent *e)|
|void||focusInEvent (QFocusEvent *e)|
|void||focusOutEvent (QFocusEvent *e)|
Specialised GUI control for entering keyboard shortcut combinations.
Allows Emacs-style key sequences (for example "Ctrl+E, Ctrl+2") no longer than four combinations. See the documentation of QKeySequence for details.
When ShortcutLineEdit receives the focus, its whole contents get selected. On a key press, if any of the contents are selected, the new key replaces all the previous contents. Otherwise, it's appended to the sequence.
Remove the last key from the key sequence.
Clear contents and stored keys.
Needed for enabling/disabling buttons in ShortcutsDialog.
|[out]||focus||false if the widget has the focus, true otherwise.|
Emits contentsChanged() if the new sequence is not the same.