class KKeySequenceWidget |
|
A widget to input a QKeySequence.
This widget lets the user choose a QKeySequence, which is usually used as a shortcut key, by pressing the keys just like to trigger a shortcut. Calling captureKeySequence(), or the user clicking into the widget, start recording. A check for conflict with shortcut of this application can also be performed. call setCheckActionList() to set the list of action to check with, and applyStealShortcut when applying changes.
Author Mark Donohoe |
|
Constructor. |
|
|
Actualy remove shortcut of action that the user wanted to steal.
To be called before you apply your changes. No shortcut are stolen untill this function is called. |
|
Capture a shortcut from the keyboard. This call will only return once a key sequence
has been captured or input was aborted.
If a key sequence was input, keySequenceChanged() will be emitted.
See also setModifierlessAllowed() |
|
Clear the key sequence. |
|
See also setModifierlessAllowed() |
|
Return the currently selected key sequence. |
|
This signal is emitted when the current key sequence has changed, be it by user input or programmatically. |
|
set a list of action to check against for conflictuous shortcut.
If there is a conflictuous shortcut with a KAction, and that his shortcut can be configured (KAction.isShortcutConfigurable() returns true) the user will be prompted for eventually steal the shortcut from this action The action you are editing the shortcut shouldn't be in that list, or there may be unexcepted behaviour Global shortcuts are automatically checked for conflicts Don't forget to call applyStealShortcut to actually steal the shortcut. |
|
Set whether a small button to set an empty key sequence should be displayed next to the main input widget. The default is to show the clear button. |
|
Set the key sequence.
If val == Validate, and the call is actually changing the key sequence, conflictuous shortcut will be checked. |
|
This only applies to user input, not to setShortcut(). Set whether to accept "plain" keys without modifiers (like Ctrl, Alt, Meta). Plain keys by our definition include letter and symbol keys and text editing keys (Return, Space, Tab, Backspace, Delete). "Special" keys like F1, Cursor keys, Insert, PageDown will always work. |
Validate key sequence
Validate | - 0 | - | ||
NoValidate | - 1 | - |